Изначально у меня была очень небольшая проблема. При выполнении латексного файла я получил ошибку, похожую на
\newtx package not found.
Итак, я решил обновить латекс. Я следил за веткой по ссылке https://askubuntu.com/questions/794671/upgrading-tex-live-from-2015-to-2016-on-ubuntu-16-04-lts и сделал следующее
sudo add-apt-repository ppa:jonathonf/texlive-2016
sudo apt-get update
sudo apt-get install texlive
Не правильно установил. Вскоре после этого я начинаю получать сообщение об ошибке
New software cannot be installed as there is a problem in the currently installed program.
Я пробовал несколько вещей, чтобы решить проблему. например Я перешел по ссылке https://askubuntu.com/questions/474646/cant-install-software-can-i-fix-missing-dpkg и сделал
sudo -i
mkdir /tmp/dpkg
cd /tmp/dpkg
wget http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.18.10ubuntu1_amd64.deb
ar x dpkg*.deb data.tar.gz
tar xfvz data.tar.gz ./usr/bin/dpkg
cp ./usr/bin/dpkg /usr/bin/
apt-get update
apt-get install --reinstall dpkg
Следующее сообщение об ошибке отображается после последней команды
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
latex-beamer : Depends: texlive-latex-base but it is not going to be installed
prosper : Depends: texlive-latex-base but it is not going to be installed
skype : Depends: skype-bin but it is not installable
texlive : Depends: texlive-latex-recommended (>= 2016) but 2013.20140215-1 is to be installed
Depends: texlive-latex-base (>= 2016) but it is not going to be installed
Depends: texlive-fonts-recommended (>= 2016) but it is not going to be installed
texlive-base : Depends: luatex (>= 0.70.1)
Depends: texlive-binaries (>= 2013.20130512) but it is not going to be installed
texlive-fonts-recommended-doc : Depends: texlive-base (>= 2016) but 2013.20140215-1 is to be installed
Depends: tex-common (>= 6) but 4.04 is to be installed
texlive-latex-extra : Depends: luatex
Depends: texlive-binaries (>= 2013.20130512) but it is not going to be installed
texlive-latex-extra-doc : Depends: tex-common (>= 6) but 4.04 is to be installed
Depends: texlive-base (>= 2016) but 2013.20140215-1 is to be installed
texlive-latex-recommended : Depends: texlive-latex-base (>= 2013.20130512) but it is not going to be installed
Depends: texlive-binaries (>= 2013.20130512) but it is not going to be installed
texlive-luatex : Depends: texlive-binaries (>= 2013.20130512) but it is not going to be installed
Depends: luatex (>= 0.70.1)
texlive-pictures : Depends: luatex
Depends: texlive-binaries (>= 2013.20130512) but it is not going to be installed
texlive-pstricks : Depends: texlive-generic-recommended (>= 2013.20130512) but it is not going to be installed
Depends: texlive-binaries (>= 2013.20130512) but it is not going to be installed
Recommends: texlive-font-utils but it is not going to be installed
Recommends: texlive-extra-utils but it is not going to be installed
tipa : Depends: texlive-latex-base but it is not going to be installed
Depends: texlive-base-bin
wine1.6 : Depends: wine1.6-i386 (= 1:1.6.2-0ubuntu4) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
я тоже пробовал
sudo apt-get -f install
со следующим сообщением об ошибке
E: Sub-process /usr/bin/dpkg returned an error code (127)
Моя система имеет 64-битный процессор corei5 и ОС Ubuntu 14.04. Я даже не могу перейти на Ubuntu 16.04. Каков выход из этой проблемы? Теперь также говорится, что латекс не установлен, поэтому моя работа над латексом также остановлена.