当我尝试使用更新管理器安装更新时,收到此消息
The package system is broken
Check if you are using third party repositories. If so disable them, since they are a common source of problems.
Furthermore run the following command in a Terminal: `apt-get install -f`
The following packages have unmet dependencies:
libc6-dev:i386: Depends: libc6 (= 2.15-0ubuntu10) but 2.15-0ubuntu10 is installed
Depends: libc-dev-bin (= 2.15-0ubuntu10) but 2.15-0ubuntu10 is installed
当我输入时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?
该怎么办?
答案1
要获取 root 权限sudo
,然后使用命令,像这样 >>
sudo apt-get update
或者,sudo apt-get upgrade
或者在您的情况下您必须使用sudo apt-get install -f
。
顺便说一句,如果你在输入sudo apt-get update
有关/var/lib/dpkg/lock
运行此命令的命令时收到错误sudo killall apt-get
,并且仍然收到错误,则运行此命令sudo rm /var/lib/dpkg/lock
,下次尝试时你应该能够成功更新sudo apt-get update
希望有帮助:)