简体   繁体   中英

Unable to locate python-gobject in ubuntu 21.10?

I installed all the python packages by using this command:

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 universe

sudo add-apt-repository restricted

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:

sudo apt update
sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM