安装vagrant时出错-Sudo apt-get install Vagrant返回错误:软件包具有未满足的依赖关系-Ubuntu 19.04

时间:2020-06-16 21:07:35

标签: linux ubuntu vagrant

我试图在我的设备上运行MiniKF,这需要我安装流浪汉。我正在运行Ubuntu 19.04。我下载了vagrant,但是当我尝试使用y安装它时,出现以下消息:

Total Hours

我尝试使用sudo apt-get install vagrantReading 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删除文件等等,但是对我来说没有任何用。任何想法将不胜感激。

1 个答案:

答案 0 :(得分:0)

首先要尝试一些非常基本的事情:

sudo apt clean && sudo apt --fix-missing && sudo dpkg --configure -a

这是可以尝试的所有非常标准的东西-这将尝试清除所有剩余的资源和缓存材料,然后尝试修复任何损坏或丢失的依赖项,然后检查是否存在其他未完成的软件包的未完成或怪异的安装问题不能完全/正确地配置自己。

在那之后,如果您仍然遇到相同的问题,我认为这是由于Ubuntu 19.04已经end of life而导致的,并且存储库可能没有(完全没有)(完全没有)封装了像Ubuntu 20.04这样生活中存在的东西。即使以上情况能解决您的问题,您也应尽可能升级到20.04,因为这不会是您在不久的将来会遇到的有关更新或安装的第一个问题。