无法安装 WICD 网络管理器

无法安装 WICD 网络管理器

我遇到了 Wifi 和以太网连接突然断开的问题。因此,我在 Google 上搜索了这个问题,发现这篇帖子是关于解决我遇到的问题我尽力按照帖子和评论来解决我的问题,但这并没有解决我的问题,然后我看到一条评论说卸载 GNOME 的网络管理器并安装 WICD 网络管理器可以解决这个问题,并且他还分享了安装 WICD 网络管理器的命令,但这些命令不起作用,因为这些命令在 Ubuntu 18.04 或更早的版本中可用。

我意识到阅读这个帖子由于 Python 2 弃用,wicd 已从存储库中删除。之后,我关注了以下帖子:这个并尝试通过下载软件包并手动安装来安装 WICD,命令如下

mkdir -p ~/Downloads/wicd
cd ~/Downloads/wicd

wget http://old-releases.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-6_amd64.deb
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-glade2_2.24.0-6_amd64.deb

wget http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wicd/python-wicd_1.7.4+tb2-6_all.deb
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wicd/wicd-daemon_1.7.4+tb2-6_all.deb
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wicd/wicd-gtk_1.7.4+tb2-6_all.deb

sudo apt-get install ./*.deb
sudo apt-get install ./*.deb # second time for correct configuration

为了手动安装 WICD,我运行了所有命令,但最后当我运行命令时,sudo apt-get install ./*.deb终端看起来像这样

lmao@lol:~/Downloads/wicd$ sudo apt-get install ./*.deb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'python-glade2' instead of './python-glade2_2.24.0-6_amd64.deb'
Note, selecting 'python-gtk2' instead of './python-gtk2_2.24.0-6_amd64.deb'
Note, selecting 'python-wicd' instead of './python-wicd_1.7.4+tb2-6_all.deb'
Note, selecting 'wicd-daemon' instead of './wicd-daemon_1.7.4+tb2-6_all.deb'
Note, selecting 'wicd-gtk' instead of './wicd-gtk_1.7.4+tb2-6_all.deb'
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:
 python-gtk2 : Depends: python-cairo (>= 1.0.2-1.1) but it is not installable
               Depends: python-gobject-2 (>= 2.21.3) but it is not installable
 wicd-daemon : Depends: python-dbus but it is not installable
               Depends: python-gobject-2 but it is not installable
E: Unable to correct problems, you have held broken packages. 

我不知道如何解决这个问题。

注意:我正在使用 Ubuntu 20.10。

答案1

上述错误输出意味着你需要在 Ubuntu 20.10 上手动安装更多依赖项wicd

mkdir -p ~/Downloads/wicd
cd ~/Downloads/wicd

wget -c http://old-releases.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-6_amd64.deb
wget -c http://old-releases.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-glade2_2.24.0-6_amd64.deb

wget -c http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wicd/python-wicd_1.7.4+tb2-6_all.deb
wget -c http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wicd/wicd-daemon_1.7.4+tb2-6_all.deb
wget -c http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wicd/wicd-gtk_1.7.4+tb2-6_all.deb

# for 20.10
wget -c http://archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi7_3.3-4_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pygobject-2/python-gobject-2_2.28.6-14ubuntu1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pycairo/python-cairo_1.16.2-2ubuntu2_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/d/dbus-python/python-dbus_1.2.16-1build1_amd64.deb

sudo apt-get update
sudo apt-get install ./*.deb
sudo apt-get install ./*.deb # second time for correct configuration

相关内容