我遇到了 Wifi 和以太网连接突然断开等问题。所以,我在谷歌上搜索了这个问题,发现了这篇关于解决我遇到的问题的帖子一条评论说卸载 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。
上述错误输出意味着您需要在 Ubuntu 20.10 上手动安装更多依赖项
wicd
: