我想python-gtop
从旧版本安装
python-gtop_2.32.0+dfsg-1_amd64.deb
但它依赖于 python (< 2.8)
The following packages have unmet dependencies:
python-gtop : Depends: python (>= 2.7)
Depends: python (< 2.8)
Depends: python-gtk2 but it is not installed
并且 Ubuntu 20.04 有 python3 和 python2,但没有 python (<2.8)。
我可以看到旧的 python-gtop_2.32.0+dfsg-1_amd64.deb`提供了
/usr/lib/python2.7/dist-packages/gtk-2.0/gtop.so
/usr/lib/pyshared/python2.7/gtk-2.0/gtop.so
它们需要去 Ubuntu 20.04 中的哪里,以及如何让 python2 看到它们?
答案1
可以通过手动下载并安装所有必要的依赖项来实现:
cd ~/Downloads
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget -c http://old-releases.ubuntu.com/ubuntu/pool/main/g/gnome-python-desktop/python-gtop_2.32.0+dfsg-1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/main/libg/libgtop2/libgtop2-7_2.28.5-2_amd64.deb
sudo apt-get install ./python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
sudo apt-get install ./libgtop2-7_2.28.5-2_amd64.deb
sudo apt-get install ./python-gtop_2.32.0+dfsg-1_amd64.deb