我正在尝试在我的设备上运行MiniKF,这需要我安装vagrant。我正在运行Ubuntu 19.04。我下载了vagrant,但当我尝试使用sudo apt-get install vagrant安装它时,我得到了以下消息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
vagrant : Depends: bsdtar but it is not going to be installed
Depends: ruby-net-scp (>= 1.1.0) but it is not going to be installed
Depends: ruby-net-sftp but it is not going to be installed
Depends: ruby-net-ssh (>= 1:2.6.6) but it is not going to be installed
Recommends: vagrant-libvirt but it is not going to be installed
E: Unable to correct problems, you have held broken packages.我试过使用sudo apt-get update,sudo apt-get install -f,试着编辑/var/lib/dpkg/status file,试着用sudo apt-get remove删除文件等等,但对我来说什么都不起作用。任何想法都将不胜感激。
发布于 2020-06-17 05:19:31
因此,首先要尝试一些非常基本的东西:
sudo apt clean && sudo apt --fix-missing && sudo dpkg --configure -a
这都是非常标准的东西,首先尝试清理任何剩余的资源和缓存材料,然后尝试修复任何损坏或丢失的依赖项,然后检查没有完全配置/正确配置的其他包的任何未完成或奇怪的安装问题。
在那之后,如果你仍然有同样的问题,我假设这是由于Ubuntu19.04已经是end of life的事实,并且存储库可能没有(读:绝对不会)像Ubuntu20.04这样的生命中的东西有所有相同的包。即使上述解决了你的问题,你也应该尽可能地升级到20.04,因为这不会是你在不久的将来出现的第一个关于更新或安装的问题。
https://stackoverflow.com/questions/62417615
复制相似问题