Screenlet在Ubuntu 16.04中不起作用(Just Need analogue clock widget)

我尝试的命令是:

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的开罗时钟,但随机时间间隔后该小部件消失。 还有什么吗?

您可以在16.04上手动构建和安装它,尽管某些小部件已损坏。 你需要Python 2.7。

下载源包:

  1. 小屏幕核心
  2. Screenlets小部件包

使用apt ,安装python-beautifulsoup,python-wnck,python-vte,python-tz

  1. 在两个提取的路径中运行make install
  2. 运行screenlet

或者您可以运行以下命令:

 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/