我是否应该强制卸载 ubuntu-minimal:依赖:resolvconf,因为它有未满足的依赖关系

我是否应该强制卸载 ubuntu-minimal:依赖:resolvconf,因为它有未满足的依赖关系

我的 ubuntu 软件中心无法正常工作,我试图修复它。我运行了以下一系列命令:

sudo apt-get update

这次失败了,结果如下

Err http://extras.ubuntu.com quantal InRelease

Err http://us.archive.ubuntu.com quantal InRelease                             

Err http://us.archive.ubuntu.com quantal-updates InRelease                     

Err http://us.archive.ubuntu.com quantal-backports InRelease

Err http://extras.ubuntu.com quantal Release.gpg
Unable to connect to 192.168.0.2:3128:
Err http://us.archive.ubuntu.com quantal Release.gpg
Unable to connect to 192.168.0.2:3128:
Err http://us.archive.ubuntu.com quantal-updates Release.gpg
Unable to connect to 192.168.0.2:3128:
Err http://us.archive.ubuntu.com quantal-backports Release.gpg
Unable to connect to 192.168.0.2:3128:
Err http://security.ubuntu.com quantal-security InRelease

Err http://security.ubuntu.com quantal-security Release.gpg
Unable to connect to 192.168.0.2:3128:
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal/InRelease  
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-updates/InRelease  

W: F ailed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/InRelease  

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/InRelease  

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/quantal/InRelease  

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/quantal/Release.gpg  Unable to connect to 192.168.0.2:3128:

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal/Release.gpg  Unable to connect to 192.168.0.2:3128:

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-updates/Release.gpg  Unable to connect to 192.168.0.2:3128:

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/quantal-backports/Release.gpg  Unable to connect to 192.168.0.2:3128:

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/Release.gpg  Unable to connect to 192.168.0.2:3128:

W: Some index files failed to download. They have been ignored, or old ones used instead.

然后我运行了这些命令

sudo apt-get autoclean
sudo apt-get clean

当我运行该命令时sudo apt-get autoremove,我得到了以下结果:

"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:
ubuntu-minimal : Depends: resolvconf
E: Unmet dependencies. Try using -f."

那么我应该强制卸载ubuntu-minimal:依赖:resolvconf

答案1

我倾向于不使用/信任,sudo autoremove因为我发现当我查看不再需要的软件包时,我已经看到了我的整个桌面(当使用 MATE 桌面时),并且有删除我实际上需要的依赖项的经历,并且因此不得不重新安装一些系统,当您发出该命令时,请务必查看它正在删除哪些软件包,因为它甚至可能删除了存储库 gpg 密钥,并且现在 install -f 不起作用,因为系统不会从不受信任的存储库下载。

这正是我使用自动删除时所经历的类型。

答案2

不,你的方法错了。你应该使用 进行安装resolvconfsudo apt-get install resolvconf删除ubuntu-minimal会导致你的系统无法启动。

相关内容