我使用这个命令安装了所有的Python包:
sudo apt-get install python3-gi python3-gi-cairo python3-gi-dbg
之后,我添加了如下所示的所有存储库
sudo add-apt-repository main
sudo add-apt-repository universe
sudo add-apt-repository restricted
sudo add-apt-repository multiverse
我仍然得到这个错误:
$ sudo apt-get install python-gobject
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python-gobject
您应该能够通过在apt install
之前运行apt update
来安装,如下所示:
sudo apt update
sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0
sudo apt-get upgrade
你应该在安装之前这样做。它升级所有的文件,而更新只告诉你关于no。应该安装的包的目录