Package Manager Troubleshoot

Asked by Rian Gabor

computer@Computer:~$ sudo fuser -vvv /var/lib/dpkg/lock
[sudo] password for computer:
computer@Computer:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"
computer@Computer:~$ uname -a
Linux Computer 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux
computer@Computer:~$ sudo rm /var/lib/apt/lists/lock
rm: cannot remove `/var/lib/apt/lists/lock': No such file or directory
computer@Computer:~$ sudo rm /var/lib/apt/lists/lock
rm: cannot remove `/var/lib/apt/lists/lock': No such file or directory
computer@Computer:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
computer@Computer:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
computer@Computer:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/availablecomputer@Computer:~$ sudo rm -rf /var/lib/dpkg/updates/*
computer@Computer:~$ sudo rm -rf /var/lib/apt/lists
computer@Computer:~$ sudo rm /var/cache/apt/*.bin
computer@Computer:~$ sudo mkdir /var/lib/apt/lists
computer@Computer:~$ sudo mkdir /var/lib/apt/lists/partial
computer@Computer:~$ LANG=C;sudo apt-get clean
computer@Computer:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
computer@Computer:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up gdm (2.32.1-0ubuntu3.2) ...
computer@Computer:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Ign http://archive.ubuntu.com natty InRelease
Ign http://extras.ubuntu.com natty InRelease
Get:1 http://archive.ubuntu.com natty Release.gpg [198 B]
Get:2 http://extras.ubuntu.com natty Release.gpg [72 B]
Get:3 http://archive.ubuntu.com natty Release [39.8 kB]
Get:4 http://extras.ubuntu.com natty Release [9753 B]
Get:5 http://archive.ubuntu.com natty/universe Sources [4380 kB]
Get:6 http://extras.ubuntu.com natty/main Sources [14 B]
Get:7 http://extras.ubuntu.com natty/main i386 Packages [14 B]
Ign http://extras.ubuntu.com natty/main TranslationIndex
Ign http://archive.canonical.com natty InRelease
Get:8 http://archive.canonical.com natty Release.gpg [198 B]
Get:9 http://archive.canonical.com natty Release [5916 B]
Ign http://extras.ubuntu.com natty/main Translation-en
Get:10 http://archive.canonical.com natty/partner i386 Packages [7866 B]
Ign http://archive.canonical.com natty/partner TranslationIndex
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty Release.gpg
Get:11 http://ppa.launchpad.net natty Release.gpg [316 B]
Ign http://ppa.launchpad.net natty Release
Ign http://archive.canonical.com natty/partner Translation-en
Get:12 http://ppa.launchpad.net natty Release [9744 B]
Ign http://ppa.launchpad.net natty/main TranslationIndex
Get:13 http://ppa.launchpad.net natty/main Sources [1934 B]
Get:14 http://ppa.launchpad.net natty/main i386 Packages [3200 B]
Ign http://ppa.launchpad.net natty/main TranslationIndex
Err http://ppa.launchpad.net natty/main Sources
  404 Not Found
Err http://ppa.launchpad.net natty/main i386 Packages
  404 Not Found
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en
Get:15 http://archive.ubuntu.com natty/main Sources [862 kB]
Get:16 http://archive.ubuntu.com natty/multiverse Sources [155 kB]
Get:17 http://archive.ubuntu.com natty/restricted Sources [4104 B]
Get:18 http://archive.ubuntu.com natty/main i386 Packages [1550 kB]
Get:19 http://archive.ubuntu.com natty/universe i386 Packages [6021 kB]
Get:20 http://archive.ubuntu.com natty/restricted i386 Packages [8986 B]
Get:21 http://archive.ubuntu.com natty/multiverse i386 Packages [183 kB]
Ign http://archive.ubuntu.com natty/main TranslationIndex
Ign http://archive.ubuntu.com natty/multiverse TranslationIndex
Ign http://archive.ubuntu.com natty/restricted TranslationIndex
Ign http://archive.ubuntu.com natty/universe TranslationIndex
Ign http://archive.ubuntu.com natty/main Translation-en
Ign http://archive.ubuntu.com natty/multiverse Translation-en
Ign http://archive.ubuntu.com natty/restricted Translation-en
Ign http://archive.ubuntu.com natty/universe Translation-en
Fetched 13.2 MB in 5min 38s (39.1 kB/s)
W: Failed to fetch http://ppa.launchpad.net/gnome/ppa/ubuntu/dists/natty/main/source/Sources 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/gnome/ppa/ubuntu/dists/natty/main/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
computer@Computer:~$ sudo dpkg --clear-avail
[sudo] password for computer:
computer@Computer:~$ sudo dpkg --configure -a
computer@Computer:~$ 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 6 not upgraded.
computer@Computer:~$ 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 6 not upgraded.
computer@Computer:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Ign http://archive.ubuntu.com natty InRelease
Ign http://extras.ubuntu.com natty InRelease
Ign http://archive.canonical.com natty InRelease
Hit http://archive.ubuntu.com natty Release.gpg
Hit http://extras.ubuntu.com natty Release.gpg
Hit http://archive.canonical.com natty Release.gpg
Hit http://archive.ubuntu.com natty Release
Hit http://extras.ubuntu.com natty Release
Hit http://archive.canonical.com natty Release
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Hit http://extras.ubuntu.com natty/main Sources
Hit http://archive.canonical.com natty/partner i386 Packages
Hit http://extras.ubuntu.com natty/main i386 Packages
Ign http://extras.ubuntu.com natty/main TranslationIndex
Ign http://archive.canonical.com natty/partner TranslationIndex
Hit http://archive.ubuntu.com natty/universe Sources
Hit http://archive.ubuntu.com natty/main Sources
Hit http://archive.ubuntu.com natty/multiverse Sources
Ign http://ppa.launchpad.net natty Release.gpg
Hit http://archive.ubuntu.com natty/restricted Sources
Hit http://archive.ubuntu.com natty/main i386 Packages
Hit http://archive.ubuntu.com natty/universe i386 Packages
Hit http://archive.ubuntu.com natty/restricted i386 Packages
Hit http://archive.ubuntu.com natty/multiverse i386 Packages
Ign http://archive.ubuntu.com natty/main TranslationIndex
Ign http://archive.ubuntu.com natty/multiverse TranslationIndex
Ign http://archive.ubuntu.com natty/restricted TranslationIndex
Hit http://ppa.launchpad.net natty Release.gpg
Ign http://archive.ubuntu.com natty/universe TranslationIndex
Ign http://ppa.launchpad.net natty Release
Ign http://archive.canonical.com natty/partner Translation-en
Hit http://ppa.launchpad.net natty Release
Ign http://extras.ubuntu.com natty/main Translation-en
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://ppa.launchpad.net natty/main Sources
Hit http://ppa.launchpad.net natty/main i386 Packages
Ign http://ppa.launchpad.net natty/main TranslationIndex
Ign http://archive.ubuntu.com natty/main Translation-en
Ign http://archive.ubuntu.com natty/multiverse Translation-en
Ign http://archive.ubuntu.com natty/restricted Translation-en
Ign http://archive.ubuntu.com natty/universe Translation-en
Err http://ppa.launchpad.net natty/main Sources
  404 Not Found
Err http://ppa.launchpad.net natty/main i386 Packages
  404 Not Found
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en
W: Failed to fetch http://ppa.launchpad.net/gnome/ppa/ubuntu/dists/natty/main/source/Sources 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/gnome/ppa/ubuntu/dists/natty/main/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
computer@Computer:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Rian Gabor
Solved:
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

What were you trying to add? There is no PPA called "gnome". You will need to remove it from your sources file (in /etc/apt/)

use the following command to launch a text editor, it may be that you have multiple list files in /etc/apt/ to open and change:

gksudo gedit

You can either delete the line or just prefix it with a '#' symbol

Revision history for this message
Rian Gabor (riangabor) said :
#2

I've been trying to do an update for weeks now but the update manager won't work. It always say: Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages

Typing "sudo apt-get clean and sudo apt-get upgrade" won't even work.

So I did everything that was suggested in this link: https://answers.launchpad.net/ubuntu/+source/update-manager/+question/162778

and it worked! Thanks everyone.

Problem Solved!