update & installation of APTITUDE

Asked by Navin Talati

Friends,
I need your guidance in the following matter.
I have installed Natty Narwhal-Ubuntu 11.04 by downloading .iso files and burning CD.
During installation, I merely installed the content from the media keeping unlinked with
internet. Npw I want to update for list of packages and install the aptitude.
For that I run following commands:-
(1) sudo apt-get update
AND
(2) sudo apt-get install aptitude
But I am not getting the results. The result of output seems as under:
________________________________________________________________________________
(1)
navin@navin-System-Product-Name:~$ sudo apt-get update
[sudo] password for navin:
Ign http://extras.ubuntu.com natty InRelease
Ign http://in.archive.ubuntu.com natty InRelease
Ign http://in.archive.ubuntu.com natty-updates InRelease
Ign http://security.ubuntu.com natty-security InRelease
Ign http://archive.canonical.com natty InRelease
Hit http://extras.ubuntu.com natty Release.gpg
Hit http://in.archive.ubuntu.com natty Release.gpg
Hit http://security.ubuntu.com natty-security Release.gpg
Hit http://archive.canonical.com natty Release.gpg
Hit http://extras.ubuntu.com natty Release
Hit http://in.archive.ubuntu.com natty-updates Release.gpg
Hit http://security.ubuntu.com natty-security Release
Hit http://archive.canonical.com natty Release
Hit http://in.archive.ubuntu.com natty Release
Hit http://extras.ubuntu.com natty/main Sources
Hit http://security.ubuntu.com natty-security/restricted i386 Packages
Hit http://archive.canonical.com natty/partner Sources
Hit http://in.archive.ubuntu.com natty-updates Release
Hit http://extras.ubuntu.com natty/main i386 Packages
Ign http://extras.ubuntu.com natty/main TranslationIndex
Hit http://security.ubuntu.com natty-security/universe i386 Packages
Hit http://security.ubuntu.com natty-security/main i386 Packages
Ign http://security.ubuntu.com natty-security/main TranslationIndex
Ign http://security.ubuntu.com natty-security/restricted TranslationIndex
Ign http://security.ubuntu.com natty-security/universe TranslationIndex
Hit http://archive.canonical.com natty/partner i386 Packages
Ign http://archive.canonical.com natty/partner TranslationIndex
Hit http://in.archive.ubuntu.com natty/restricted i386 Packages
Hit http://in.archive.ubuntu.com natty/universe i386 Packages
Hit http://in.archive.ubuntu.com natty/main i386 Packages
Ign http://in.archive.ubuntu.com natty/main TranslationIndex
Ign http://in.archive.ubuntu.com natty/restricted TranslationIndex
Ign http://in.archive.ubuntu.com natty/universe TranslationIndex
Hit http://in.archive.ubuntu.com natty-updates/restricted i386 Packages
Hit http://in.archive.ubuntu.com natty-updates/universe i386 Packages
Hit http://in.archive.ubuntu.com natty-updates/main i386 Packages
Ign http://in.archive.ubuntu.com natty-updates/main TranslationIndex
Ign http://in.archive.ubuntu.com natty-updates/restricted TranslationIndex
Ign http://in.archive.ubuntu.com natty-updates/universe TranslationIndex
Ign http://extras.ubuntu.com natty/main Translation-en_IN
Ign http://archive.canonical.com natty/partner Translation-en_IN
Ign http://extras.ubuntu.com natty/main Translation-en
Ign http://security.ubuntu.com natty-security/main Translation-en_IN
Ign http://security.ubuntu.com natty-security/main Translation-en
Ign http://security.ubuntu.com natty-security/restricted Translation-en_IN
Ign http://archive.canonical.com natty/partner Translation-en
Ign http://security.ubuntu.com natty-security/restricted Translation-en
Ign http://security.ubuntu.com natty-security/universe Translation-en_IN
Ign http://in.archive.ubuntu.com natty/main Translation-en_IN
Ign http://in.archive.ubuntu.com natty/main Translation-en
Ign http://in.archive.ubuntu.com natty/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com natty/restricted Translation-en
Ign http://security.ubuntu.com natty-security/universe Translation-en
Ign http://in.archive.ubuntu.com natty/universe Translation-en_IN
Ign http://in.archive.ubuntu.com natty/universe Translation-en
Ign http://in.archive.ubuntu.com natty-updates/main Translation-en_IN
Ign http://in.archive.ubuntu.com natty-updates/main Translation-en
Ign http://in.archive.ubuntu.com natty-updates/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com natty-updates/restricted Translation-en
Ign http://in.archive.ubuntu.com natty-updates/universe Translation-en_IN
Ign http://in.archive.ubuntu.com natty-updates/universe Translation-en
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_natty_restricted_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
navin@navin-System-Product-Name:~$
_________________________________________________________________________________
AND

(2)
_______________________________________________________________________________

navin@navin-System-Product-Name:~$ sudo apt-get install aptitude
[sudo] password for navin:
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_natty_restricted_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
navin@navin-System-Product-Name:~$
_________________________________________________________________________________

Please guide me in matter - HOW TO PROCEED SUCCESSFULLY?

Thanking you all in anticipation.
Navin Talati / 30-7-2011

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Navin Talati
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Please try from terminal

sudo apt-get update
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get -f install

Please report only errors here...

Revision history for this message
Navin Talati (n-m-talati) said :
#2

The result is as under:
___________________________________________________________________________
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_natty_restricted_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
navin@navin-System-Product-Name:~$ sudo apt-get dist-upgrade
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_natty_restricted_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
navin@navin-System-Product-Name:~$ sudo apt-get -f install
______________________________________________________________________________
Please guide further
Navin Talati /30-7-2011

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

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
sudo apt-get clean
sudo apt-get update
sudo dpkg --clear-avail
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get update
sudo apt-get dist-upgrade

Revision history for this message
Navin Talati (n-m-talati) said :
#4

Thank you very much sir.
I could resolve my problem.
Matter solved.