Hey there I tried to install latex using the follwing commands in ubuntu 16.04:
sudo apt-get install texlive-full texstudio
Then I finally came to the point with the following output:
Setting up thunderbird-locale-en (1:52.3.0+build1-0ubuntu0.16.04.1) ...
Setting up thunderbird-locale-en-us (1:52.3.0+build1-0ubuntu0.16.04.1) ...
Setting up context (2015.05.18.20150601-2) ...
Running mtxrun --generate. This may take some time... done.
Pregenerating ConTeXt MarkIV format. This may take some time...
And after waiting for 5 hours I closed the process. Unfortunately now my certain packages seem to be broken. e.g when I try to install a new package or try sudo apt-get dist-upgrade I get the following error:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
-a' to correct the problem.
And If I try
sudo dpkg --configure -a
I came again to the endless waiting point....
Any Ideas what I can do?
Notes:
- I also have installed Miktex before does that cause some troubles?
I unfortunately cannot remove any package cause I also get:
sudo apt-get remove tex-common E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
I have also faced the similar issue. What have I done is :
Got the following response.
removed these packages using dpkg -r.
I am new to linux (only few days and I crashed it 4 times already :D)... I faced the same problem while installing
texlive-full
-apt-get install
,purge
and so on didn't worked andsudo dpkg --configure -a
couldn't finish. I don't know which step helped the most, but after searching on the internet I found the solution how to 'repair' damages.sudo killall dpkg
sudo nano /var/lib/dpkg/status
and deleted the whole section forPackage: context (2015.05.18.20150601-2)
(you can easily search it by pressingctrl+W
) and saved it. That didn't solved problem yet (I also removed 'tex-common' since that was problematic for me, too).sudo dpkg -r context
but dependency error occurred (texlive-full
andcontext-modules
depends oncontext
) and processing triggered for 'tex-common'. So I try to removetex-common
but there were even more dependencies I didn't try to remove other packages.sudo dpkg --configure -a
and an error occured -> thats good because it stopped working and I could tryapt-get
.sudo apt-get purge texlive*
to remove everything from problematic package and it worked, than I also purgedmiktex
.sudo apt-get -f install
I think I was just lucky but after this you can try installing tex again (find some not bugged package)
I have faced a similar issue with my
texlive-*full
and terminal got stuck for more than 12hrs. Finally I have decided to quit the upgrade. I have used following steps to resolve my problem through trial and error and a comprehensive search over Google./var/lib/dpkg/status
and delete all the block information which contains the statusunpacked
ornot-installed
orhalf-installed
(Only choose those packages which are installed during Texlive, don't forget to remove context).sudo fuser -vki /var/lib/dpkg/lock
to kill the process.sudo dpkg -r <packagename>
to remove installed package..sudo dpkg --configure -a
to configure all packages.sudo apt purge texlive-*
.sudo apt autoremove
to uninstall unwanted or leftover files.I have also reinstalled the
tex-common
andtexlive-base
and now my system is working fine. You might need to use steps 1 to 4 recursively until your problem has been resolved. I have also restarted my PC after step 4.