ubuntu 无法sudo apt-get 了。。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu 无法sudo apt-get 了。。相关的知识,希望对你有一定的参考价值。

相当悲剧,,不管安装或者删除还是安装什么都会有报错。。

vector@vector-laptop:~$ sudo apt-get install libgl1-mesa-glx
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgl1-mesa-glx is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up foomatic-filters (4.0.3-0ubuntu2.2) ...
dpkg: error processing foomatic-filters (--configure):
subprocess installed post-installation script returned error exit status 10
Setting up samba-common (2:3.4.0-3ubuntu5.6) ...
dpkg: error processing samba-common (--configure):
subprocess installed post-installation script returned error exit status 10
dpkg: dependency problems prevent configuration of samba-common-bin:
samba-common-bin depends on samba-common (>= 2:3.4.0~pre1-2); however:
Package samba-common is not configured yet.
dpkg: error processing samba-common-bin (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
foomatic-filters
samba-common
samba-common-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

参考技术A 这个很难讲,可能是依赖关系问题,也可能是源冲突,或者本来源就不好

你sudo apt-get -f install试一下看看

不行的话这样

cd /var/lib/dpkg
sudo mv info info.bak
sudo mkdir info

然后apt-get install 或者 apt-get upgrade

再把info替换回去应该就可以了本回答被提问者采纳

以上是关于ubuntu 无法sudo apt-get 了。。的主要内容,如果未能解决你的问题,请参考以下文章

使用sudo apt-get出现无法解析域名的问题:“cn.archive.ubuntu.com”

sudo apt-get update出错:N: 无法安全地用该源进行更新,所以默认禁用该源

ubuntu中安装软件时:sudo apt-get install 软件名。出现无法找到软件包,该如何解决

VMware下装ubuntu,在终端输入sudo apt-get install mesa-utils,总是提没有可用的软件包,无法安装

ubuntu 18 当使用命令sudo apt-get install sysv-rc-conf安装不上时,提示“ E: 无法定位软件包问题

有关ubuntu16.04进行sudo apt-get update更新时出现:‘N: 无法安全地用该源进行更新,所以默认禁用该源。’等问题解决方案