VTR安装过程中的错误汇总(一)

在github上下载得到VTR源码之后,首先要在其目录下运行命令

./install_apt_packages.sh

但在允许这个命令时出现错误,部分提示信息为:

The following packages have unmet dependencies:
 python3-venv : Depends: python3 (= 3.6.7-1~18.04) but 3.8.2-0ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libx11-dev is already the newest version (2:1.6.9-2ubuntu1.2).
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:
 libgtk-3-dev : Depends: libgtk-3-0 (= 3.22.30-1ubuntu4) but 3.24.18-1ubuntu1 is to be installed
                Depends: gir1.2-gtk-3.0 (= 3.22.30-1ubuntu4) but 3.24.18-1ubuntu1 is to be installed
                Depends: libgdk-pixbuf2.0-dev (>= 2.30.0) but it is not going to be installed
                Depends: libpango1.0-dev (>= 1.40.5) but it is not going to be installed
                Depends: libatk1.0-dev (>= 2.15.1) but it is not going to be installed
                Depends: libatk-bridge2.0-dev but it is not going to be installed
                Depends: libepoxy-dev (>= 1.0) but it is not going to be installed
                Depends: libxinerama-dev but it is not going to be installed
                Depends: libxi-dev but it is not going to be installed
                Depends: libxrandr-dev but it is not going to be installed
                Depends: libxcursor-dev but it is not going to be installed
                Depends: libxfixes-dev but it is not going to be installed
                Depends: libxcomposite-dev but it is not going to be installed
                Depends: libxdamage-dev but it is not going to be installed
                Depends: libegl1-mesa-dev but it is not going to be installed
                Depends: libwayland-dev (>= 1.9.91) but it is not going to be installed
                Depends: libxkbcommon-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
 

原因是因为一些依赖包的错误,尝试安装aptitude来解决安装包问题,结果发现同样会报错,说缺少依赖包,这就很难受了,想要用这个东西来解决依赖包问题,结果它本身因为依赖包问题下载不了

搜到了这篇文章后解决了我的问题:(17条消息) 树莓派想使用 aptitude 解决依赖包问题,但是使用 apt-get 安装 aptitude 时出现依赖包错误怎么办?_FightingBoom的博客-CSDN博客_树莓派安装aptitude

我使用的是阿里的镜像源,打开文件etc/apt/sources.list,可以找到对于的源:

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

也是随手从网上抄下来的,可以看到对应的版本为bionic版本,但是我们在终端中输入命令

lsb_release -a

得到如下结果:

No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 20.04 LTS
Release:    20.04
Codename:    focal
 

发现我们的版本代号为focal,这两者是不一样的!

于是修改镜像源为:

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

就是将原有的bionic修改为了focal,保存之后再运行

sudo apt-get update
sudo apt-get upgrade

更新完系统之后继续VTR的安装,输入命令

./install_apt_packages.sh

可以正常得到结果了!

如果仍然提示有包未安装,可以先下载一个aptitude:

sudo apt-get install aptitude

然后再利用命令

sudo aptitude install XXX

来手动安装各个需要的包

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值