我尝试过的命令是:
sudo apt-get install screenlets
结果 :
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package screenlets 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
还有其他方法可以安装它吗?我尝试使用 MacSlow 的 Cairo-Clock,但该小部件会在随机时间间隔后消失。还有其他方法吗?
答案1
尽管有些小部件已损坏,但您可以在 16.04 上手动构建和安装它。您需要 Python 2.7 才能完成此操作。
下载源包:
使用易于, 安装python-beautifulsoup、python-wnck、python-vte、python-tz
- 跑步进行安装在两个提取的路径中。
- 跑步屏幕片段
或者您可以运行以下命令:
sudo apt install python-beautifulsoup python-wnck python-vte python-tz
cd /tmp
wget -O - https://launchpad.net/screenlets/trunk/0.1.6/+download/screenlets-0.1.6.tar.bz2 | bunzip2 -c - | tar xf -
wget -O - https://launchpad.net/indiv-screenlets/trunk/0.1.6/+download/indiv-screenlets-0.1.6.tar.bz2 | bunzip2 -c - | tar xf -
cd screenlets-0.1.6
sudo make install
cd ../indiv-screenlets-0.1.6
sudo make install
screenlets &
笔记:你可能会遇到Python包权限问题,我通过运行以下命令修复了它:
sudo chmod -R go+rX /usr/local/lib/python2.7/dist-packages/