欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Jetson Ubuntu安装libgtk2.0-dev,试过绝大多数方案后终于成功!值得一试!

程序员文章站 2024-03-15 22:52:09
...

1.问题描述

(1)正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
没有可用的软件包 libgtk2.0-dev,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到

E: 软件包 libgtk2.0-dev 没有可安装候选
Jetson Ubuntu安装libgtk2.0-dev,试过绝大多数方案后终于成功!值得一试!
(2)正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
E: 无法定位软件包 libgtk2.0-dev
E: 无法按照 glob ‘libgtk2.0-dev’ 找到任何软件包
E: 无法按照正则表达式 libgtk2.0-dev 找到任何软件包
Jetson Ubuntu安装libgtk2.0-dev,试过绝大多数方案后终于成功!值得一试!

2.解决方法

我一直用的aliyun的源,这次安装不成功,系统提示只能在其他发布源中找到,我在CSDN上找了很多源尝试,用了很长时间都不行,最后想起来自己换源之前把初始源备份了,于是把初始源拿了出来,竟然成功了!先看一下效果。
Jetson Ubuntu安装libgtk2.0-dev,试过绝大多数方案后终于成功!值得一试!
下面就是之前备份的系统初始源,通过sudo gedit /etc/apt/sources.list更改源

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ bionic universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic universe
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ports.ubuntu.com/ubuntu-ports/ bionic multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security universe
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security multiverse

3.其他方法

(1)其他换源。各种源,我都试了,一次次改,一次次update,搞了很久还是不行。
这个博客:[已解决]libgtk2.0-dev依赖包的问题用的也是系统初始源,但是我用了没成功,我这里不行的话可以试试他的。
(2)系统设置—>软件与更新—>中国的服务器。尝试后依旧不行。
(3)降级操作。sudo aptitude install libgtk2.0-dev,我这里显示如下,安装aptitude又出现了和libgtk2.0-dev一样的问题。
Jetson Ubuntu安装libgtk2.0-dev,试过绝大多数方案后终于成功!值得一试!
Jetson Ubuntu安装libgtk2.0-dev,试过绝大多数方案后终于成功!值得一试!