PDA

View Full Version : [ubuntu] Unable to install any package after an aborted update from karmic to lucid



v1v3k
January 31st, 2011, 08:31 AM
Hi,

I have been using Ubuntu 9.10 for a while. When I noticed that the support for this version would end soon, I decided to upgrade to Ubuntu 10.04 (Lucid Lynx). So I started using the update manager (The GUI one). It was calculating changes for some time and then it showed a message that 1.9 GB of files need to be downloaded. Since I didn't have an unlimited data plan and with my connection , it could take a really long time, I aborted the process. After that I'm unable to install any package using apt-get or other wise. After a package has been downloaded, when apt tries to install it - I get the error:


E: Internal Error, Could not perform immediate configuration (2) on mountallI noticed that in the soures.list file, all the repositories were changed to lucid. I changed them all back to karmic and tried again. But I still get the same error when I try to install something.

Is there any work around for this?

garvinrick4
January 31st, 2011, 08:53 AM
Hi,

I have been using Ubuntu 9.10 for a while. When I noticed that the support for this version would end soon, I decided to upgrade to Ubuntu 10.04 (Lucid Lynx). So I started using the update manager (The GUI one). It was calculating changes for some time and then it showed a message that 1.9 GB of files need to be downloaded. Since I didn't have an unlimited data plan and with my connection , it could take a really long time, I aborted the process. After that I'm unable to install any package using apt-get or other wise. After a package has been downloaded, when apt tries to install it - I get the error:


E: Internal Error, Could not perform immediate configuration (2) on mountallI noticed that in the soures.list file, all the repositories were changed to lucid. I changed them all back to karmic and tried again. But I still get the same error when I try to install something.

Is there any work around for this? I believe this will get you in as root and change them and the update. Open terminal and copy and paste:

sudo sed -i 's/lucid/karmic/g' /etc/apt/sources.list && sudo apt-get update
Throw one of these in to make sure no dependency issues going on:

sudo dpkg --configure -a
and

sudo apt-get -f install

v1v3k
January 31st, 2011, 10:23 AM
Thanks, It fixed the problem.




sudo dpkg --configure -a

Btw what does the above line of code do?

garvinrick4
January 31st, 2011, 07:56 PM
Thanks, It fixed the problem.



Btw what does the above line of code do? It changes the version in sources.list
saves them and updates them. In your case it is going backwards in version only because
you never upgraded your system just changed the sources.list other wise it is usually used
to go from one version to the next version. Add a && sudo apt-get dist-upgrade to it and you have upgraded your system to next version.