仍然可以,但是可以通过手动安装软件包来实现。
基于从Ubuntu 20.10获取软件包,可以使用以下方法:
# 1. Get the newest Mercurial with Python 3 support
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mercurial/mercurial-common_5.5.1-1_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mercurial/mercurial_5.5.1-1_amd64.deb
# 2. Install Mercurial packages
sudo apt-get install ./mercurial*.deb -y
# 3. Get dependencies for TortoiseHg
sudo apt install python3-all-dev python3-pyqt5 python3-pyqt5.qsci python3-iniparse -y
# 4. Get sources of TortoiseHg
hg clone https://foss.heptapod.net/mercurial/tortoisehg/thg
cd thg
hg checkout 5.5.1
# 5. Compile TortoiseHg using Python 3
sudo apt-get install python-is-python3
make local
sudo python3 setup.py install
# 6. Install TortoiseHg extension for Caja
mkdir -p ~/.local/share/caja-python/extensions
cp /usr/local/share/nautilus-python/extensions/nautilus-thg.py ~/.local/share/caja-python/extensions/caja-thg.py
然后使用重启Caja caja -q && caja
。
结果,将获得带有Caja中TortoiseHG前端的Mercurial的全部功能:
笔记:
sudo apt-get install mercurial
,然后继续下一步。我已经在Ubuntu MATE 20.10上测试了此方法。效果很好!本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句