Monday, December 9, 2019

12.04 - Cannot find softwares installed via synaptic manager after accidentally deleting sources.list


I did a fresh install of ubuntu 12.04 over my earlier 11.10.I saved the sources.list from my previous installation to another partition and replaced the sources.list in /etc/apt/ of the current installation with it,after editing it for the new distro.I got a lot of errors while using update manager so I deleted the sources.list.


At the same time,I was installing a lot of packages from synaptic manager and I left the download and install for the night(my Internet connection speed is just 256Kbps). Now,I cant find any of those packages like chromium,wine and javacc installed on my computer!Even in synaptic the packages are shown as not installed.Please help me out,I cant start another download and wait for 6 hours.



Ubuntu keeps track of software sources using the sources.list file you have deleted.



Why older sources file is not working?



Because older list points to software sources compatible with older ubuntu which if installed somehow prone to crash. Never use such approach while upgrading.


Fix for now : Use this site to generate sources.list file for appropriate Ubuntu version.
http://repogen.simplylinux.ch/


then run sudo apt-get update


Have a look in /etc/var/cache/archives . Possibly the packages are there. But you have downloaded the packages for wrong version (11.10) if you used old source files without correct modification. You can just try to install the software. Its possible you have to re download few packages or all packages. Give a try.


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...