[英]Unable to locate python-gobject in ubuntu 21.10?
I installed all the python packages by using this command:我使用以下命令安装了所有 python 包:
sudo apt-get install python3-gi python3-gi-cairo python3-gi-dbg sudo apt-get install python3-gi python3-gi-cairo python3-gi-dbg
Later, I added all the repositories as shown后来,我添加了所有的存储库,如图
sudo add-apt-repository main sudo add-apt-repository main
sudo add-apt-repository universe sudo add-apt-repository 宇宙
sudo add-apt-repository restricted sudo add-apt-repository 受限
sudo add-apt-repository multiverse sudo add-apt-repository multiverse
I am still getting this error:我仍然收到此错误:
$ 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
You should be able to install by running apt update
before apt install
, like this:您应该能够通过在apt install
之前运行apt update
进行apt install
,如下所示:
sudo apt update
sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.