Along with LibreHatti, we were also given tasks related to Latex. The first and the foremost thing to be done was supposed to be the installation of Latex. The installation wasn’t the tough part though it became one for me. 😛
Just one command and it was supposed to be done. Mind this ! ‘supposed to be done’ . 😛
The command to install Latex is :
sudo apt-get install texlive-full
If the installation is interrupted in between, you may resume it using the option fix-missing as :
sudo apt-get install --fix-missing texlive-full
Every friend of mine had Latex installed on their laptops within 3-4 days of assignment of our tasks. But, I wasn’t, because of the errors I was encountering while installing or updating anything from terminal.
The errors were fresh for me. 😛 I feared seeing them. Wanna have a look ?
Here it is :
W: GPG error: http://archive.canonical.com precise Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key
W: GPG error: http://ppa.launchpad.net precise Release: The following signatures were invalid: BADSIG BF36996C4E1F8A59
These errors were not limited to the installation of Latex. I encountered such signature errors, every time I tried to install or upgrade or update anything. Or, in a way, ‘sudo apt-get’ stopped working for me. 😦
Whenever I tried to use :
sudo apt-get update
I encountered the error :
The following signatures were invalid: NODATA 1 NODATA 2
I was surrounded by such signature errors. 😦
I asked my friends about this but, none had an idea. As always, I came to Google for my rescue and was able to solve the issue in the 2nd attempt itself.
Following is the 1st solution I tried (it didn’t work for me, but it might, for you ) :
1. First try :
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5
where 40976EAF437D05B5 is the number(key) written after the word BADSIG in the error statement.
I tried finding the reason of why this didn’t work and I found something like (not very sure) :
BADSIG is different than NO_PUBKEY and the above method is meant for the latter, though it may work for the former.
2. (this one worked for me) I tried the following set of commands :
cd /var/lib/apt sudo mv lists lists.old sudo mkdir -p lists/partial sudo apt-get update
These commands rebuild the cache, as I read. ‘Rebuild the cache ?’, I don’t really know, what it means. 😛 I tried finding out, but didn’t find the answers much relevant. Answers are welcome ! 😉
After the execution of these commands, sudo apt-get started working and finally, I am done with the Latex installation. 🙂
Apart from this, we’ve been assigned our new tasks related to ‘suspence’ in LibreHatti. I’m done with the models (and almost with the forms part ) and have pushed the changes. My new team includes Divyanshi and Aashita. Currently, they are busy with their Latex presentation and would join me tomorrow after delivering their awesome presentation. 🙂
Let the ‘Suspense’ or ‘Suspence’ reveal !! 😉