Broken Packages After Upgrading to Ubuntu 10.04 from Kosmic Koala

Asked by Melodic

I just upgraded my laptop to Ubuntu 10.04LTS and have 3 packages that are broken. The packages are open office.org-calc, openoffice.org-core, and ure. When I try to upgrade URE from the package manager, I get the error: E: /var/cache/apt/archives/ure_1.6.0+OOo3.2.0-7ubuntu4_i386.deb: short read in buffer_copy (backend dpkg-deb during `./usr/lib/ure/lib/libunsafe_uno_uno.so'). It appears that since the ure won't upgrade, the other two packages won't install. How can I fix this issue?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu openoffice.org Edit question
Assignee:
No assignee Edit question
Solved by:
Dawning
Solved:
Last query:
Last reply:
Revision history for this message
Best Dawning (dawning) said :
#1

I'd try:

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get check

Please let me know if that helps.

If that fails, I'd then remove/purge the offending packages manually and attempt to reinstall them.

I'm listing my response as an "answer", if you still have a problem, please reopen the question. Good luck.

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#2

Hi,

First please make sure to close all open programs, including all package managers like Synaptic, Add/remove programs, etc ...

Then please try this procedure:

Step 1: Open Terminal from "Applications->Accessories->
Terminal"

Step 2: Please COPY-PASTE each line below into the Terminal then hit <enter> after each line)

sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo aptitude clean
LANG=C;sudo aptitude autoclean
LANG=C;sudo apt-get update
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo aptitude install -f
LANG=C;sudo aptitude update
LANG=C;sudo aptitude dist-upgrade

Step 3: Please post results (copy/paste terminal output from each command) on this thread

Hope it helps,

Regards,

Mark

Revision history for this message
Melodic (joetaylor357) said :
#3

Thanks Dawning, that solved my question.

Revision history for this message
Melodic (joetaylor357) said :
#4

Dawning, everything worked except for sudo apt-get upgrade. When I ran that function I was told to try sudo apt-get -f install. I ran that, then the check. Now I have no more broken packages. Thanks for the advise. Thank you for your response also, Mark.

Revision history for this message
Dawning (dawning) said :
#5

Glad to hear things are working out for ya now.