Unfixable error in libcurl package.

Asked by PMBDaKing on 2009-08-12

Binary package hint: libgtop2-common

When I try to fix all broken packages, this error seems to prevent me from doing so. It says that there is a certain line in the 'status' file in it's directory that has been incorrectly written. I have tried to fix this, but I cannot seem to gain permission to edit this file.
I am running Ubuntu 9.04 (Jaunty Jackalope).
I am running version 7.18.2 of the package.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/sbin/synaptic
NonfreeKernelModules: nvidia
Package: synaptic 0.62.5ubuntu3
ProcAttrCurrent: unconfined
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: synaptic
Uname: Linux 2.6.28-14-generic i686

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu libgtop2 Edit question
Assignee:
No assignee Edit question
Solved by:
Mark Rijckenberg
Solved:
2009-08-12
Last query:
2009-08-12
Last reply:
2009-08-12
PMBDaKing (petermbryant) said : #1

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: Run the following commands (copy-paste each line below to the Terminal then hit <enter> after each line)

sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo rm /var/lib/dpkg/info/*
sudo aptitude clean
sudo aptitude autoclean
sudo apt-get update
sudo rm /var/lib/apt/lists/*
sudo mkdir /var/lib/apt/lists/partial
sudo dpkg --clear-avail
sudo dpkg --configure -a
sudo aptitude install -f
sudo aptitude update
sudo aptitude dist-upgrade

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

Hope it helps,

Regards,

Mark

Anatoly (camelclub) said : #3

If sudo won't gain permissions, may be run

sudo telinit 1

before run aptitude?

PMBDaKing (petermbryant) said : #4

Mark,
When I copy/paste the first line into the Terminal and hit Enter, it asks for my password, but won't let me type it in. In fact, it won't let me type anything.

This is a normal security feature. It IS allowing you to enter the password, but is not showing it. This is for security reasons.

So when sudo asks for your password, enter the password you use to log into Ubuntu. Then press the <enter> key.

PMBDaKing (petermbryant) said : #6

Mark,
Here are the results (there are some typing errors on my part, but you should be able to spot them):
peter@peter-desktop:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
[sudo] password for peter:
peter@peter-desktop:~$ sudo rm /var/lib/dpkg/info/*
sudo: unable to execute /bin/rm: Argument list too long
peter@peter-desktop:~$ sudo cp/var/lib/dpkg/status-old /var/lib/dpkg/status
sudo: cp/var/lib/dpkg/status-old: command not found
peter@peter-desktop:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
peter@peter-desktop:~$ sudo rm /var/lib/dpkg/info/*
sudo: unable to execute /bin/rm: Argument list too long
peter@peter-desktop:~$ sudo aptitude clean
Reading package lists... Done
Building dependency tree
Reading state information... Done
Initialising package states... Done
Writing extended state information... Done
peter@peter-desktop:~$ sudo aptitude autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Freed 0B of disk space
peter@peter-desktop:~$ sudo apt-get update
Hit http://security.ubuntu.com jaunty-security Release.gpg
Ign http://security.ubuntu.com jaunty-security/main Translation-en_GB
Hit http://gb.archive.ubuntu.com jaunty Release.gpg
Hit http://gb.archive.ubuntu.com jaunty/main Translation-en_GB
Ign http://security.ubuntu.com jaunty-security/restricted Translation-en_GB
Ign http://security.ubuntu.com jaunty-security/universe Translation-en_GB
Ign http://security.ubuntu.com jaunty-security/multiverse Translation-en_GB
Hit http://security.ubuntu.com jaunty-security Release
Hit http://gb.archive.ubuntu.com jaunty/restricted Translation-en_GB
Hit http://gb.archive.ubuntu.com jaunty/universe Translation-en_GB
Hit http://gb.archive.ubuntu.com jaunty/multiverse Translation-en_GB
Hit http://gb.archive.ubuntu.com jaunty-updates Release.gpg
Ign http://gb.archive.ubuntu.com jaunty-updates/main Translation-en_GB
Ign http://gb.archive.ubuntu.com jaunty-updates/restricted Translation-en_GB
Ign http://gb.archive.ubuntu.com jaunty-updates/universe Translation-en_GB
Ign http://gb.archive.ubuntu.com jaunty-updates/multiverse Translation-en_GB
Hit http://wine.budgetdedicated.com jaunty Release.gpg
Ign http://wine.budgetdedicated.com jaunty/main Translation-en_GB
Hit http://gb.archive.ubuntu.com jaunty Release
Hit http://gb.archive.ubuntu.com jaunty-updates Release
Hit http://wine.budgetdedicated.com jaunty Release
Hit http://security.ubuntu.com jaunty-security/main Packages
Hit http://security.ubuntu.com jaunty-security/restricted Packages
Hit http://security.ubuntu.com jaunty-security/main Sources
Hit http://security.ubuntu.com jaunty-security/restricted Sources
Hit http://security.ubuntu.com jaunty-security/universe Packages
Hit http://security.ubuntu.com jaunty-security/universe Sources
Hit http://security.ubuntu.com jaunty-security/multiverse Packages
Hit http://security.ubuntu.com jaunty-security/multiverse Sources
Hit http://gb.archive.ubuntu.com jaunty/main Packages
Hit http://gb.archive.ubuntu.com jaunty/restricted Packages
Hit http://gb.archive.ubuntu.com jaunty/main Sources
Hit http://gb.archive.ubuntu.com jaunty/restricted Sources
Hit http://gb.archive.ubuntu.com jaunty/universe Packages
Hit http://gb.archive.ubuntu.com jaunty/universe Sources
Ign http://wine.budgetdedicated.com jaunty/main Packages
Hit http://gb.archive.ubuntu.com jaunty/multiverse Packages
Hit http://gb.archive.ubuntu.com jaunty/multiverse Sources
Hit http://gb.archive.ubuntu.com jaunty-updates/main Packages
Hit http://gb.archive.ubuntu.com jaunty-updates/restricted Packages
Hit http://gb.archive.ubuntu.com jaunty-updates/main Sources
Hit http://gb.archive.ubuntu.com jaunty-updates/restricted Sources
Hit http://gb.archive.ubuntu.com jaunty-updates/universe Packages
Hit http://gb.archive.ubuntu.com jaunty-updates/universe Sources
Hit http://gb.archive.ubuntu.com jaunty-updates/multiverse Packages
Hit http://gb.archive.ubuntu.com jaunty-updates/multiverse Sources
Hit http://wine.budgetdedicated.com jaunty/main Packages
Reading package lists... Done
peter@peter-desktop:~$ sudo rm /var/lib/apt/lists*
rm: cannot remove `/var/lib/apt/lists': Is a directory
peter@peter-desktop:~$ sudo rm /var/lib/apt/lists/*
rm: cannot remove `/var/lib/apt/lists/partial': Is a directory
peter@peter-desktop:~$ sudo mkdir /var/lib/apt/lists/partial
mkdir: cannot create directory `/var/lib/apt/lists/partial': File exists
peter@peter-desktop:~$ sudo dpkg --clear-avail
peter@peter-desktop:~$ sudo dpkg --configure -a
Setting up vboxgtk (0.4.1-1ubuntu1) ...

peter@peter-desktop:~$ sudo aptitude install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done

peter@peter-desktop:~$ sudo aptitude update
Get:1 http://gb.archive.ubuntu.com jaunty Release.gpg [189B]
Get:2 http://gb.archive.ubuntu.com jaunty/main Translation-en_GB [52.6kB]
Get:3 http://security.ubuntu.com jaunty-security Release.gpg [189B]
Ign http://security.ubuntu.com jaunty-security/main Translation-en_GB
Ign http://security.ubuntu.com jaunty-security/restricted Translation-en_GB
Ign http://security.ubuntu.com jaunty-security/universe Translation-en_GB
Ign http://security.ubuntu.com jaunty-security/multiverse Translation-en_GB
Get:4 http://security.ubuntu.com jaunty-security Release [49.6kB]
Get:5 http://gb.archive.ubuntu.com jaunty/restricted Translation-en_GB [4640B]
Get:6 http://gb.archive.ubuntu.com jaunty/universe Translation-en_GB [35.2kB]
Get:7 http://gb.archive.ubuntu.com jaunty/multiverse Translation-en_GB [47.5kB]
Get:8 http://gb.archive.ubuntu.com jaunty-updates Release.gpg [189B]
Ign http://gb.archive.ubuntu.com jaunty-updates/main Translation-en_GB
Ign http://gb.archive.ubuntu.com jaunty-updates/restricted Translation-en_GB
Ign http://gb.archive.ubuntu.com jaunty-updates/universe Translation-en_GB
Ign http://gb.archive.ubuntu.com jaunty-updates/multiverse Translation-en_GB
Get:9 http://gb.archive.ubuntu.com jaunty Release [74.6kB]
Get:10 http://gb.archive.ubuntu.com jaunty-updates Release [49.6kB]
Get:11 http://security.ubuntu.com jaunty-security/main Packages [68.3kB]
Get:12 http://gb.archive.ubuntu.com jaunty/main Packages [1253kB]
Get:13 http://security.ubuntu.com jaunty-security/restricted Packages [2391B]
Get:14 http://security.ubuntu.com jaunty-security/main Sources [19.7kB]
Get:15 http://security.ubuntu.com jaunty-security/restricted Sources [522B]
Get:16 http://security.ubuntu.com jaunty-security/universe Packages [26.1kB]
Get:17 http://security.ubuntu.com jaunty-security/universe Sources [6091B]
Get:18 http://security.ubuntu.com jaunty-security/multiverse Packages [1662B]
Get:19 http://security.ubuntu.com jaunty-security/multiverse Sources [588B]
Get:20 http://gb.archive.ubuntu.com jaunty/restricted Packages [8848B]
Get:21 http://gb.archive.ubuntu.com jaunty/main Sources [555kB]
Get:22 http://gb.archive.ubuntu.com jaunty/restricted Sources [3156B]
Get:23 http://gb.archive.ubuntu.com jaunty/universe Packages [4757kB]
Get:24 http://wine.budgetdedicated.com jaunty Release.gpg [191B]
Ign http://wine.budgetdedicated.com jaunty/main Translation-en_GB
Get:25 http://wine.budgetdedicated.com jaunty Release [1019B]
Ign http://wine.budgetdedicated.com jaunty/main Packages
Get:26 http://wine.budgetdedicated.com jaunty/main Packages [1273B]
Get:27 http://gb.archive.ubuntu.com jaunty/universe Sources [2375kB]
Get:28 http://gb.archive.ubuntu.com jaunty/multiverse Packages [197kB]
Get:29 http://gb.archive.ubuntu.com jaunty/multiverse Sources [107kB]
Get:30 http://gb.archive.ubuntu.com jaunty-updates/main Packages [133kB]
Get:31 http://gb.archive.ubuntu.com jaunty-updates/restricted Packages [2391B]
Get:32 http://gb.archive.ubuntu.com jaunty-updates/main Sources [40.5kB]
Get:33 http://gb.archive.ubuntu.com jaunty-updates/restricted Sources [522B]
Get:34 http://gb.archive.ubuntu.com jaunty-updates/universe Packages [44.8kB]
Get:35 http://gb.archive.ubuntu.com jaunty-updates/universe Sources [13.0kB]
Get:36 http://gb.archive.ubuntu.com jaunty-updates/multiverse Packages [4968B]
Get:37 http://gb.archive.ubuntu.com jaunty-updates/multiverse Sources [1661B]
Fetched 9938kB in 12s (773kB/s)
Reading package lists... Done

Current status: 3 updates [+3].
peter@peter-desktop:~$ sudo aptitude dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
The following packages will be upgraded:
  libxml2 libxml2-utils python-libxml2
3 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1179kB of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Get:1 http://gb.archive.ubuntu.com jaunty-updates/main libxml2 2.6.32.dfsg-5ubuntu4.2 [821kB]
Get:2 http://gb.archive.ubuntu.com jaunty-updates/main libxml2-utils 2.6.32.dfsg-5ubuntu4.2 [33.9kB]
Get:3 http://gb.archive.ubuntu.com jaunty-updates/main python-libxml2 2.6.32.dfsg-5ubuntu4.2 [324kB]
Fetched 1179kB in 1s (1009kB/s)
(Reading database ... 124315 files and directories currently installed.)
Preparing to replace libxml2 2.6.32.dfsg-5ubuntu4 (using .../libxml2_2.6.32.dfsg-5ubuntu4.2_i386.deb) ...
Unpacking replacement libxml2 ...
Preparing to replace libxml2-utils 2.6.32.dfsg-5ubuntu4 (using .../libxml2-utils_2.6.32.dfsg-5ubuntu4.2_i386.deb) ...
Unpacking replacement libxml2-utils ...
Preparing to replace python-libxml2 2.6.32.dfsg-5ubuntu4 (using .../python-libxml2_2.6.32.dfsg-5ubuntu4.2_i386.deb) ...
Unpacking replacement python-libxml2 ...
Processing triggers for man-db ...
Processing triggers for python-support ...
Setting up libxml2 (2.6.32.dfsg-5ubuntu4.2) ...

Setting up libxml2-utils (2.6.32.dfsg-5ubuntu4.2) ...
Setting up python-libxml2 (2.6.32.dfsg-5ubuntu4.2) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Processing triggers for python-support ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done

Current status: 0 updates [-3].
peter@peter-desktop:~$

PMBDaKing (petermbryant) said : #7

Thanks Mark Rijckenberg, that solved my question.