LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   ubuntu upgrade fails (https://www.linuxquestions.org/questions/ubuntu-63/ubuntu-upgrade-fails-548241/)

trscookie 04-23-2007 04:07 AM

ubuntu upgrade fails
 
Hello all, the other day I ran the Ubuntu update manager with the intention of upgrading the distro, the problem is I lost the internet connection whilst it was downloading the updates.

Now when I run sudo update-manager -c I get:
Code:

Could not calculate upgrade
An unresolvable problem occurred while calculating the upgrade.

Please report this bug against the 'update-manager' package and include the files in /var/log/dist-upgrade/ in the bugreport.


and if i run sudo aptitude update/upgrade I get:

Code:

1151 packages upgraded, 0 newly installed, 65 to remove and 319 not upgraded.
Need to get 0B/927MB of archives. After unpacking 24.5MB will be freed.
Do you want to continue? [Y/n/?] Y
Writing extended state information... Done
Extract templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 236804 files and directories currently installed.)
Preparing to replace libarts1-audiofile 4:3.5.5-0ubuntu1 (using .../libarts1-audiofile_4%3a3.5.6-0ubuntu4_i386.deb) ...
Unpacking replacement libarts1-audiofile ...
dpkg: error processing /var/cache/apt/archives/libarts1-audiofile_4%3a3.5.6-0ubuntu4_i386.deb (--unpack):
 trying to overwrite `/usr/lib/libarts_audiofile.so', which is also in package kdemultimedia-dev
Errors were encountered while processing:
 /var/cache/apt/archives/libarts1-audiofile_4%3a3.5.6-0ubuntu4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
adrian@adrians-laptop:~$


please help.

b0uncer 04-23-2007 07:32 AM

Were you trying to update the packages on the system, or did you mean you wanted to upgrade the whole distribution to the next release?

In any case, the best is to try and revert any changes to configurations, flush apt's cache and restart the whole upgrade. If you were planning to upgrade the release version (for example, from edgy to feisty), then the first step that is done is that in /etc/apt/sources.list every word "edgy" is replaced with "feisty". If the upgrade process is interrupted, you will either need to replace "feisty" with "edgy" on each line again (i.e. go backwards) to be able to use the graphical upgrade tool, or simply continue the process using apt (after flushing caches).

To clear the package cache, read
Code:

man apt-get
man dpkg

they contain the information needed to remove all cached packages etc. Then I'd run 'apt-get update' and 'apt-get -f upgrade' to see if it can fix any errors left; after this try and restart. Hope your connection won't die next time :)

trscookie 04-23-2007 08:15 AM

nice one cheers, it seems to be going well, just one more question though, you said "try and restart" im not going to encounter the reminiscence of windows where my computer doesn't reboot am i?

reddazz 04-23-2007 09:53 AM

Moved: This thread is more suitable in the Ubuntu forum and has been moved accordingly to help your thread/question get the exposure it deserves.


All times are GMT -5. The time now is 03:16 AM.