有人知道如何在 lubuntu 20.04 上安装 key-mon 吗?它不再在仓库中,当我下载 .deb 包时,由于无法解析依赖项,它无法安装。非常感谢!已解决
答案1
答案2
您仍然可以使用 18.04 LTS 中的软件包安装 keymon:
cd ~/Downloads
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/k/key-mon/key-mon_1.17-1ubuntu1_all.deb
sudo apt-get install ./python-gtk2_2.24.0-5.1ubuntu2_amd64.deb ./key-mon_1.17-1ubuntu1_all.deb
注意:对于 Ubuntu 21.04(hirsute)和 21.10(impish),依赖项列表更长:
cd ~/Downloads
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/python-xlib/python-xlib_0.23-2build1_all.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pycairo/python-cairo_1.16.2-2ubuntu2_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pygobject-2/python-gobject-2_2.28.6-14ubuntu1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/k/key-mon/key-mon_1.17-1ubuntu1_all.deb
sudo apt-get install ./key-mon_1.17-1ubuntu1_all.deb ./python-cairo_1.16.2-2ubuntu2_amd64.deb ./python-gobject-2_2.28.6-14ubuntu1_amd64.deb ./python-gtk2_2.24.0-5.1ubuntu2_amd64.deb ./python-xlib_0.23-2build1_all.deb
答案3
您可以按如下方式安装 key-mon:
pip install git+https://github.com/scottkirkwood/key-mon
然后您可以从终端运行它:
key-mon
答案4
您可以尝试使用以下命令(解决方案是这里):
$sudo add-apt-repository ppa:nrbrtx/python2-stuff
$sudo apt-get update
$sudo apt-get install key-mon