尝试在 Ubuntu 19 上安装 screenlets,但是我无法正确安装它的一些依赖项 - 包“python-gnome2”。
sudo apt install screenlets
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
screenlets : Depends: python-gnome2 but it is not installable
Depends: python-wnck but it is not installable
Depends: python-gconf but it is not installable
Depends: python-beautifulsoup but it is not installable
Depends: python-gnomekeyring but it is not installable
Recommends: python-webkit but it is not installable
Recommends: python-rsvg but it is not installable
Recommends: screenlets-pack-basic but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
sudo apt install python-gnome2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-gnome2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python-gnome2' has no installation candidate
一些谷歌搜索显示“python-gnome2”包在 18.04 之后已被弃用?
是否有人知道是否有可用的解决方法,或者是否有一些允许 Screenlets 在 Ubuntu 19 上运行的更新?
答案1
警告:通常不推荐使用以下方法,但如果您确实想在系统上安装 ScreenLets,可以继续。
我们需要将 Ubuntu 16.04 LTS 存储库添加到系统:
cat << EOF | sudo tee /etc/apt/sources.list.d/xenial.list
deb http://archive.ubuntu.com/ubuntu xenial main universe multiverse restricted
deb http://archive.ubuntu.com/ubuntu xenial-updates main universe multiverse restricted
deb http://archive.ubuntu.com/ubuntu xenial-security main universe multiverse restricted
EOF
然后我们需要从linuxuprising PPA(与常规的基于 deb 的方法一样不起作用):
sudo add-apt-repository ppa:linuxuprising/libpng12
sudo apt install libpng12-0
然后我们需要添加ScreenLets PPA:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 94E58C34A8670E8C
sudo add-apt-repository "deb http://ppa.launchpad.net/screenlets/ppa/ubuntu xenial main"
最后,我们可以安装 ScreenLets:
sudo apt-get install screenlets-pack-all
享受。