Update Package Manager Error repair operation

Asked by Royalist

At PackageManagerTroubleshootingProcedure page on completion of the following steps, I was advised to forward the whole terminal code for analysis.

I hope that you can help please.

roy@roy-1011PX:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for roy:
roy@roy-1011PX:~$ sudo fuser -vvv /var/lib/dpkg/lock
roy@roy-1011PX:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
roy@roy-1011PX:~$ uname -a
Linux roy-1011PX 3.0.0-23-generic #39-Ubuntu SMP Thu Jul 19 19:18:53 UTC 2012 i686 i686 i386 GNU/Linux
roy@roy-1011PX:~$ sudo rm /var/lib/apt/lists/lock
roy@roy-1011PX:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
roy@roy-1011PX:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
roy@roy-1011PX:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
roy@roy-1011PX:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
roy@roy-1011PX:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
roy@roy-1011PX:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
mv: cannot stat `/var/lib/dpkg/available': No such file or directory
roy@roy-1011PX:~$ sudo rm -rf /var/lib/dpkg/updates/*
roy@roy-1011PX:~$ sudo rm -rf /var/lib/apt/lists
roy@roy-1011PX:~$ sudo rm /var/cache/apt/*.bin
roy@roy-1011PX:~$ sudo mkdir /var/lib/apt/lists
roy@roy-1011PX:~$ sudo mkdir /var/lib/apt/lists/partial
roy@roy-1011PX:~$ LANG=C;sudo apt-get clean
roy@roy-1011PX:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
roy@roy-1011PX:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
  python-reportlab*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
10 not fully installed or removed.
After this operation, 3596 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 384766 files and directories currently installed.)
Removing python-reportlab ...
Setting up isc-dhcp-common (4.1.1-P1-17ubuntu10.3) ...
Setting up isc-dhcp-client (4.1.1-P1-17ubuntu10.3) ...
Setting up libisc62 (1:9.7.3.dfsg-1ubuntu4.3) ...
Setting up libdns69 (1:9.7.3.dfsg-1ubuntu4.3) ...
Setting up libisccc60 (1:9.7.3.dfsg-1ubuntu4.3) ...
Setting up libisccfg62 (1:9.7.3.dfsg-1ubuntu4.3) ...
Setting up libbind9-60 (1:9.7.3.dfsg-1ubuntu4.3) ...
Setting up liblwres60 (1:9.7.3.dfsg-1ubuntu4.3) ...
Setting up bind9-host (1:9.7.3.dfsg-1ubuntu4.3) ...
Setting up dnsutils (1:9.7.3.dfsg-1ubuntu4.3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
roy@roy-1011PX:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Ign http://security.ubuntu.com oneiric-security InRelease
Ign http://gb.archive.ubuntu.com oneiric InRelease
Ign http://gb.archive.ubuntu.com oneiric-updates InRelease
Ign http://archive.canonical.com oneiric InRelease
Get:1 http://security.ubuntu.com oneiric-security Release.gpg [198 B]
Get:2 http://gb.archive.ubuntu.com oneiric Release.gpg [198 B]
Get:3 http://archive.canonical.com oneiric Release.gpg [198 B]
Get:4 http://security.ubuntu.com oneiric-security Release [40.8 kB]
Get:5 http://gb.archive.ubuntu.com oneiric-updates Release.gpg [198 B]
Get:6 http://archive.canonical.com oneiric Release [5922 B]
Get:7 http://gb.archive.ubuntu.com oneiric Release [40.8 kB]
Get:8 http://archive.canonical.com oneiric/partner i386 Packages [4591 B]
Ign http://archive.canonical.com oneiric/partner TranslationIndex
Get:9 http://gb.archive.ubuntu.com oneiric-updates Release [40.8 kB]
Get:10 http://security.ubuntu.com oneiric-security/main i386 Packages [190 kB]
Get:11 http://gb.archive.ubuntu.com oneiric/restricted Sources [5351 B]
Get:12 http://gb.archive.ubuntu.com oneiric/main Sources [877 kB]
Ign http://archive.canonical.com oneiric/partner Translation-en_GB
Get:13 http://security.ubuntu.com oneiric-security/restricted i386 Packages [3939 B]
Get:14 http://security.ubuntu.com oneiric-security/universe i386 Packages [50.7 kB]
Ign http://archive.canonical.com oneiric/partner Translation-en
Get:15 http://security.ubuntu.com oneiric-security/main TranslationIndex [73 B]
Get:16 http://security.ubuntu.com oneiric-security/restricted TranslationIndex [71 B]
Get:17 http://security.ubuntu.com oneiric-security/universe TranslationIndex [73 B]
Get:18 http://security.ubuntu.com oneiric-security/main Translation-en [89.8 kB]
Get:19 http://security.ubuntu.com oneiric-security/restricted Translation-en [978 B]
Get:20 http://security.ubuntu.com oneiric-security/universe Translation-en [33.7 kB]
Get:21 http://gb.archive.ubuntu.com oneiric/multiverse Sources [149 kB]
Get:22 http://gb.archive.ubuntu.com oneiric/universe Sources [4677 kB]
Get:23 http://gb.archive.ubuntu.com oneiric/main i386 Packages [1226 kB]
Get:24 http://gb.archive.ubuntu.com oneiric/restricted i386 Packages [8216 B]
Get:25 http://gb.archive.ubuntu.com oneiric/universe i386 Packages [4468 kB]
Get:26 http://gb.archive.ubuntu.com oneiric/main TranslationIndex [3289 B]
Get:27 http://gb.archive.ubuntu.com oneiric/restricted TranslationIndex [2263 B]
Get:28 http://gb.archive.ubuntu.com oneiric/universe TranslationIndex [2640 B]
Get:29 http://gb.archive.ubuntu.com oneiric-updates/main i386 Packages [373 kB]
Get:30 http://gb.archive.ubuntu.com oneiric-updates/restricted i386 Packages [6631 B]
Get:31 http://gb.archive.ubuntu.com oneiric-updates/universe i386 Packages [124 kB]
Get:32 http://gb.archive.ubuntu.com oneiric-updates/main TranslationIndex [74 B]
Get:33 http://gb.archive.ubuntu.com oneiric-updates/restricted TranslationIndex [72 B]
Get:34 http://gb.archive.ubuntu.com oneiric-updates/universe TranslationIndex [73 B]
Get:35 http://gb.archive.ubuntu.com oneiric/main Translation-en_GB [69.0 kB]
Get:36 http://gb.archive.ubuntu.com oneiric/main Translation-en [701 kB]
Get:37 http://gb.archive.ubuntu.com oneiric/restricted Translation-en_GB [1937 B]
Get:38 http://gb.archive.ubuntu.com oneiric/restricted Translation-en [2229 B]
Get:39 http://gb.archive.ubuntu.com oneiric/universe Translation-en_GB [4365 B]
Get:40 http://gb.archive.ubuntu.com oneiric/universe Translation-en [3165 kB]
Get:41 http://gb.archive.ubuntu.com oneiric-updates/main Translation-en [179 kB]
Get:42 http://gb.archive.ubuntu.com oneiric-updates/restricted Translation-en [1547 B]
Get:43 http://gb.archive.ubuntu.com oneiric-updates/universe Translation-en [75.4 kB]
Fetched 16.6 MB in 27s (614 kB/s)
Reading package lists... Done
roy@roy-1011PX:~$ sudo dpkg --configure -a
roy@roy-1011PX:~$ sudo dpkg --clear-avail
roy@roy-1011PX:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
roy@roy-1011PX:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
roy@roy-1011PX:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Ign http://gb.archive.ubuntu.com oneiric InRelease
Ign http://gb.archive.ubuntu.com oneiric-updates InRelease
Ign http://security.ubuntu.com oneiric-security InRelease
Ign http://archive.canonical.com oneiric InRelease
Hit http://gb.archive.ubuntu.com oneiric Release.gpg
Hit http://security.ubuntu.com oneiric-security Release.gpg
Hit http://archive.canonical.com oneiric Release.gpg
Hit http://gb.archive.ubuntu.com oneiric-updates Release.gpg
Hit http://security.ubuntu.com oneiric-security Release
Hit http://archive.canonical.com oneiric Release
Hit http://gb.archive.ubuntu.com oneiric Release
Hit http://gb.archive.ubuntu.com oneiric-updates Release
Hit http://security.ubuntu.com oneiric-security/main i386 Packages
Hit http://archive.canonical.com oneiric/partner i386 Packages
Hit http://security.ubuntu.com oneiric-security/restricted i386 Packages
Hit http://security.ubuntu.com oneiric-security/universe i386 Packages
Hit http://security.ubuntu.com oneiric-security/main TranslationIndex
Hit http://security.ubuntu.com oneiric-security/restricted TranslationIndex
Hit http://security.ubuntu.com oneiric-security/universe TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric/restricted Sources
Ign http://archive.canonical.com oneiric/partner TranslationIndex
Hit http://security.ubuntu.com oneiric-security/main Translation-en
Hit http://security.ubuntu.com oneiric-security/restricted Translation-en
Hit http://gb.archive.ubuntu.com oneiric/main Sources
Hit http://gb.archive.ubuntu.com oneiric/multiverse Sources
Hit http://gb.archive.ubuntu.com oneiric/universe Sources
Hit http://gb.archive.ubuntu.com oneiric/main i386 Packages
Hit http://gb.archive.ubuntu.com oneiric/restricted i386 Packages
Hit http://security.ubuntu.com oneiric-security/universe Translation-en
Hit http://gb.archive.ubuntu.com oneiric/universe i386 Packages
Hit http://gb.archive.ubuntu.com oneiric/main TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric/restricted TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric/universe TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric-updates/main i386 Packages
Hit http://gb.archive.ubuntu.com oneiric-updates/restricted i386 Packages
Hit http://gb.archive.ubuntu.com oneiric-updates/universe i386 Packages
Hit http://gb.archive.ubuntu.com oneiric-updates/main TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric-updates/restricted TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric-updates/universe TranslationIndex
Hit http://gb.archive.ubuntu.com oneiric/main Translation-en_GB
Hit http://gb.archive.ubuntu.com oneiric/main Translation-en
Hit http://gb.archive.ubuntu.com oneiric/restricted Translation-en_GB
Hit http://gb.archive.ubuntu.com oneiric/restricted Translation-en
Hit http://gb.archive.ubuntu.com oneiric/universe Translation-en_GB
Hit http://gb.archive.ubuntu.com oneiric/universe Translation-en
Hit http://gb.archive.ubuntu.com oneiric-updates/main Translation-en
Hit http://gb.archive.ubuntu.com oneiric-updates/restricted Translation-en
Hit http://gb.archive.ubuntu.com oneiric-updates/universe Translation-en
Ign http://archive.canonical.com oneiric/partner Translation-en_GB
Ign http://archive.canonical.com oneiric/partner Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed
  skype-bin
The following packages will be upgraded:
  skype
1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.3 MB of archives.
After this operation, 6732 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.canonical.com/ubuntu/ oneiric/partner skype i386 4.0.0.8-0oneiric1 [15.1 kB]
Get:2 http://archive.canonical.com/ubuntu/ oneiric/partner skype-bin i386 4.0.0.8-0oneiric1 [29.2 MB]
Fetched 29.3 MB in 19s (1496 kB/s)
(Reading database ... 384279 files and directories currently installed.)
Preparing to replace skype 2.2.0.35-1 (using .../skype_4.0.0.8-0oneiric1_i386.deb) ...
Unpacking replacement skype ...
Selecting previously deselected package skype-bin.
Unpacking skype-bin (from .../skype-bin_4.0.0.8-0oneiric1_i386.deb) ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Processing triggers for desktop-file-utils ...
Setting up skype-bin (4.0.0.8-0oneiric1) ...
Setting up skype (4.0.0.8-0oneiric1) ...
roy@roy-1011PX:~$

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#1

Hi ,
sorry I cannot see any problem here.

The dist-upgrade command completed successfully without errors.
You upgraded skype to the newer version.

Skype's new version is in Software Center now.

Reboot your system and enjoy your new Skype :)

Thanks

Revision history for this message
Roy Symes (royalist10) said :
#2

Nik thanks for looking at it so promptly.

Since reading your email I have run two further 'apt-get update' in
terminal and the second completed with no error messages, but there is
still a 'no entry' sign displayed at the top of the screen stating that
an error occurred when checking for updates.

I have opened the GUI Update Manager which displays the following
message: E:Opening /etc/apt/sources.list - ifstream::ifstream
(13:Permision denied)

At /etc/apt/ in terminal 'ls -l sources.list ---------------------1 root
root 2973 2012-07-31 09:25 sources.list

Any suggestions please?

Regards
Roy

On 31/07/12 11:21, NikTh wrote:
> Your question #204644 on apt in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/204644
>
> Status: Open => Answered
>
> NikTh proposed the following answer:
> Hi ,
> sorry I cannot see any problem here.
>
> The dist-upgrade command completed successfully without errors.
> You upgraded skype to the newer version.
>
> Skype's new version is in Software Center now.
>
> Reboot your system and enjoy your new Skype :)
>
> Thanks
>

--
Regards Roy Symes

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

The command

sudo chmod 644 /etc/apt/sources.list

should correct the access rights

Revision history for this message
Roy Symes (royalist10) said :
#4

Thanks Manfred that did the trick!

On 01/08/12 11:11, Manfred Hampl wrote:
> Your question #204644 on apt in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/204644
>
> Manfred Hampl proposed the following answer:
> The command
>
> sudo chmod 644 /etc/apt/sources.list
>
> should correct the access rights
>

--
Regards Roy Symes

Can you help with this problem?

Provide an answer of your own, or ask Royalist for more information if necessary.

To post a message you must log in.