Can't run do-release-upgrade in jaunty to upgrade to karmic Problem executing scripts APT::Update::Pre-Invoke

Asked by doclist

I can't seem to run do-release-upgrade. I get the error attached below. Tried to start debugging it but it was a nightmare with dynamic fetching of the source, indirection and subprocess execution. Apt works fine, I have no apparent network problems.

% sudo do-release-upgrade -d
Checking for a new ubuntu release
Done Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'karmic.tar.gz'
authenticate 'karmic.tar.gz' against 'karmic.tar.gz.gpg'

Reading cache

Checking package manager
Reading package lists: Done
Reading state information: Done
Reading state information: Done
Reading state information: Done
Building old list of packages... errors present. Is apt/dpkg running?
Done downloading
Reading package lists: Doneunty/main Packages: 90 ages: 90 88
Reading state information: Done
Reading state information: Done
Reading state information: Done

Updating repository information

Third party sources disabled

Some third party entries in your sources.list were disabled. You can
re-enable them after the upgrade with the 'software-properties' tool
or your package manager.

Building old list of packages... errors present. Is apt/dpkg running?
Done downloading
Building old list of packages... errors present. Is apt/dpkg running?
Done downloading
Building old list of packages... errors present. Is apt/dpkg running?
Done downloading

Error during update

A problem occurred during the update. This is usually some sort of
network problem, please check your network connection and retry.

E:Problem executing scripts APT::Update::Pre-Invoke '/usr/bin/daptup
--pre', E:Sub-process returned an error code

Restoring original system state

Aborting
Reading package lists: Doneunty/main Packages: 90 ages: 90 88
Reading state information: Done
Reading state information: Done
Reading state information: Done

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager-core Edit question
Assignee:
No assignee Edit question
Solved by:
doclist
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
doclist (dclist) said :
#1

Also, "sudo daptup --pre" seems to run fine when run from the console and returns a zero exit code.

Revision history for this message
doclist (dclist) said :
#2

I accidentally marked this as solved when it wasn't. I'm still having this issue.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

ok this is a dead giveaway;

Building old list of packages... errors present. Is apt/dpkg running?

Do you have synaptic or aptitude still running. This will lock the packages and prevent updates.

If you don't then try a reboot. If that doesn't work the run:

sudo fuser -vki /var/lib/dpkg/lock;sudo dpkg --configure -a

Then try again.

Revision history for this message
doclist (dclist) said :
#4

I gave up on do-release-upgrade, resorting to editing sources.list
manually and then doing the upgrade.

I doubt your solution would have worked since aptitude was working
fine otherwise. (I could call it immediately after the failed
do-release-upgrade without problems).

Thanks anyway.

Revision history for this message
thouters (thomas-langewouters) said :
#5

I am experiencing the same problem.
I removed the lockfile, but the problem was still there. ( did run sudo fuser -vki /var/lib/dpkg/lock;sudo dpkg --configure -a )