Как установить TortoiseHg на человечности 19.10

Я просто попытался установить TortoiseHg после обновления от Ubuntu 19.04 до Ubuntu 19.10, и у меня есть следующее:

sudo apt install tortoisehg 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package tortoisehg 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 'tortoisehg' has no installation candidate

Есть ли в данный момент какая-либо опция установки TortoiseHg за исключением создания его самостоятельно из источников?


Относительно комментария о возможном дубликате Установки TortoiseHg: нужна более высокая Подвижная версия - она не решает проблему.

В настоящее время я использую подвижный в версии 4.8.2 который является новейшим доступным в 19,10, не добавляя подвижный-ppa.

Когда я пытался добавить подвижное-ppa, у меня есть следующая ошибка:

sudo add-apt-repository ppa:mercurial-ppa/releases
 See https://launchpad.net/~mercurial-ppa
 More info: https://launchpad.net/~mercurial-ppa/+archive/ubuntu/releases
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Ign:1 http://ppa.launchpad.net/mercurial-ppa/releases/ubuntu eoan InRelease
Err:2 http://ppa.launchpad.net/mercurial-ppa/releases/ubuntu eoan Release                                                                
  404  Not Found [IP: 91.189.95.83 80]
Hit:3 http://security.ubuntu.com/ubuntu eoan-security InRelease                                                                                                                                        
Hit:4 http://nl.archive.ubuntu.com/ubuntu eoan InRelease                                                                                                                                               
Hit:5 http://nl.archive.ubuntu.com/ubuntu eoan-updates InRelease                                                                                                   
Hit:6 https://repo.skype.com/deb stable InRelease                                                                          
Hit:7 http://nl.archive.ubuntu.com/ubuntu eoan-backports InRelease                                                         
Ign:8 http://dl.google.com/linux/chrome/deb stable InRelease                                         
Ign:9 http://dl.google.com/linux/earth/deb stable InRelease
Hit:10 http://dl.google.com/linux/chrome/deb stable Release
Hit:11 http://dl.google.com/linux/earth/deb stable Release
Hit:12 https://dl.winehq.org/wine-builds/ubuntu eoan InRelease
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/mercurial-ppa/releases/ubuntu eoan Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
2
задан 21 October 2019 в 12:55

2 ответа

Последняя версия TortoiseHg для Debian базировалась, ОС 4.8.1-0.1 (согласно результатам поиска Debian). Та же версия доступна в пуле Ubuntu архивов (и может быть найден путем поиска на Пакетах Ubuntu*), и зависимости могут все еще быть удовлетворены у Горностая Eoan (19.10) без любой дополнительной работы.

Устанавливать выполненный:

wget http://mirrors.kernel.org/ubuntu/pool/universe/t/tortoisehg/tortoisehg_4.8.1-0.1_all.deb
sudo apt install ./tortoisehg_4.8.1-0.1_all.deb

*Благодарен за то, что N0rbert напоминает для включения ссылки.

5
ответ дан 22 December 2019 в 00:16

Ответ Кульфи мне не помог. На самом деле строка wget не работает, потому что файл не существует. На сегодняшний день 4.5.2 является последней версией tortoisehg, доступной для Ubuntu.

Вот как я это сделал в Ubuntu 20; это, вероятно, будет работать и для 19 тоже. Примечание. Я беру данные из «стабильной» ветки, потому что в ней есть исправления, которых нет в основной ветке (на сегодняшний день, например, функциональность полки не работает в основной ветке, но исправлена ​​в «стабильной».)

# make a folder to hold the tortoise source
mkdir ~/temp 2>/dev/null
cd ~/temp

# alias the python3 binary as python
sudo apt install python-is-python3
# now this should work, and return a 3.8.x version
python --version

# pip3 is needed to fulfill all the build dependencies
sudo apt install -y python3-pip build-essential

# install mercurial command line
sudo apt install -y mercurial
# pull tortoisehg source (stable branch)
# this no longer exists: hg clone https://bitbucket.org/tortoisehg/thg/ -r stable
# use this one instead:
hg clone https://foss.heptapod.net/mercurial/tortoisehg/thg -r stable
cd thg
pip3 install pyqt5
pip3 install mercurial
pip3 install qscintilla
sudo apt install -y pyqt5.qsci-dev

# install one more necessary package
sudo apt install -y python3-iniparse

# build it
make local
# move it to ~/tortoisehg  (this is optional)
cd ~/temp
rm -rf ~/tortoisehg 2>/dev/null
mkdir ~/tortoisehg
mv thg/* ~/tortoisehg

Теперь вы можете создайте запись на доке/рабочем столе:

gedit ~/.local/share/applications/tortoisehg.desktop

и вставьте в эти строки (замените «разработчик» своим именем пользователя):

[Desktop Entry]
Name=TortoiseHG
Exec=/home/developer/tortoisehg/thg
Comment=Launch TortoiseHG
Terminal=false
Type=Application
Icon=/home/developer/tortoisehg/icons/thg_logo.ico

Теперь вы можете нажать кнопку «Показать приложения» (меню «Пуск»), выполнить поиск Tortoise и добавить это в избранное.

1
ответ дан 2 June 2020 в 15:46

Другие вопросы по тегам:

Похожие вопросы: