我正在尝试在我的设备上运行 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
删除文件还有更多,但没有什么对我有用。任何想法将不胜感激。
最佳答案
所以首先要尝试一些非常基本的事情:sudo apt clean && sudo apt --fix-missing && sudo dpkg --configure -a
这是所有非常标准的东西,首先要尝试 - 这将尝试清理任何剩余的资源和缓存 Material ,然后尝试修复任何损坏或丢失的依赖项,然后检查其他未配置的软件包的任何未完成或其他奇怪的安装问题自己一路/正确。
在那之后,如果你仍然有同样的问题,我假设这是因为 Ubuntu 19.04 已经是 end of life。 ,并且存储库可能没有(阅读:绝对没有)具有与 Ubuntu 20.04 等生活中的东西相同的软件包。即使上述解决了您的问题,您也应该尽可能考虑升级到 20.04,因为这不会是您在不久的将来出现的第一个关于更新或安装的问题。
关于linux - 安装 vagrant 时出错 - Sudo apt-get install Vagrant 返回错误 : packages have unmet dependencies - Ubuntu 19. 04,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62417615/