软件包管理器损坏。未满足的依赖关系

软件包管理器损坏。未满足的依赖关系

我试图解决一个问题,却又产生了另一个问题......

我的更新管理器坏了...

包装系统已损坏

检查您是否正在使用第三方存储库。如果是,请禁用它们,因为它们是问题的常见来源。此外,在终端中运行以下命令:apt-get install -f

我运行apt-get install -f并得到:

missx@missx:~$ apt-get install -f
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

我尝试重新安装软件中心,但出现此问题

missx@missx:~$ sudo apt-get --reinstall install software-center
[sudo] password for missx: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 network-manager-dbg : Depends: network-manager (= 0.9.4.0-0ubuntu3) but 0.9.4.0-0ubuntu4.2 is to be installed or
                                libnm-util2 (= 0.9.4.0-0ubuntu3) but 0.9.4.0-0ubuntu4.2 is to be installed or
                                libnm-glib4 (= 0.9.4.0-0ubuntu3) but 0.9.4.0-0ubuntu4.2 is to be installed or
                                libnm-glib-vpn1 (= 0.9.4.0-0ubuntu3) but 0.9.4.0-0ubuntu4.2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

网络管理器是我昨天为了修复我的 Wi-Fi 问题而安装的垃圾......

没有安装突触(这太简单了,对吧..?)

sudo apt-get -f install

missx@missx:~$ sudo apt-get -f install 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-38 libsub-name-perl libparse-debianchangelog-perl
  libnspr4-0d:i386 libsigc++-2.0-0c2a:i386 libcwidget3
  libboost-iostreams1.46.1 libgconf2-4:i386 libapt-pkg4.12:i386
  libio-string-perl linux-headers-3.2.0-38-generic libept1.4.12
  libclass-accessor-perl libnss3-1d:i386
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  network-manager-dbg
The following packages will be upgraded:
  network-manager-dbg
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,463 kB of archives.
After this operation, 8,192 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of network-manager-dbg:
 network-manager-dbg depends on network-manager (= 0.9.4.0-0ubuntu3) | libnm-util2 (= 0.9.4.0-0ubuntu3) | libnm-glib4 (= 0.9.4.0-0ubuntu3) | libnm-glib-vpn1 (= 0.9.4.0-0ubuntu3); however:
  Version of network-manager on system is 0.9.4.0-0ubuntu4.2.
  Version of libnm-util2 on system is 0.9.4.0-0ubuntu4.2.
  Version of libnm-glib4 on system is 0.9.4.0-0ubuntu4.2.
  Version of libnm-glib-vpn1 on system is 0.9.4.0-0ubuntu4.2.
dpkg: error processing network-manager-dbg (--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:

network-manager-dbg E: 子进程 /usr/bin/dpkg 返回错误代码 (1)”

答案1

我认为没有理由重新安装软件中心。

“apt-get install”命令前面需要加上“sudo”。

从错误信息 E: Could not open lock file /var/lib/dpkg/lock - open (13:) 中可以看到没有权限) E: 无法锁定管理目录 (/var/lib/dpkg/),你是 root 吗?

我不知道您的无线问题是什么,但我不明白为什么安装网络管理器可以解决它(考虑到网络管理器是默认安装的,并且从您发布的消息来看,我猜您刚刚升级了它)

相关内容