cannot update system

Asked by David Lundell on 2010-09-05

unable to update error message keeps coming up nothing working

Question information

English Edit question
Ubuntu yelp Edit question
No assignee Edit question
Solved by:
David Lundell
Last query:
Last reply:
David Lundell (petdevildoll) said : #1

Just installed Ubuntu 10.04, and for some reason nothing will install i continue to get that error and others like it. If any one can help please ive had more then my share of problems and i just want a operating system that will work the way it is suppose to.

Hi David, did any error occurred while installing Ubuntu or while opening it? Can you provide the whole error message from the command you typed to upgrade the system. And what software are you trying to install. Thank you

David Lundell (petdevildoll) said : #3

Yes, some errors occurred while installing, but unfortunatly i cannot remember them, i am afraid to attempt a reinstall as it took me over three days for my system to install the operating system in the first place this is what i get when i type "sudo apt-get update" in the teminal:
Hit lucid-security Release.gpg
Ign lucid-security/main Translation-en_US
Ign lucid-security/restricted Translation-en_US
Ign lucid-security/universe Translation-en_US
Ign lucid-security/multiverse Translation-en_US
Hit lucid-security Release
Hit lucid-security/main Packages
Hit lucid-security/restricted Packages
Hit lucid-security/restricted Sources
Hit lucid-security/main Sources
Hit lucid-security/multiverse Sources
Hit lucid-security/universe Sources
Hit lucid-security/universe Packages
Hit lucid-security/multiverse Packages
Get:1 lucid Release.gpg [189B]
Ign lucid/main Translation-en_US
Ign lucid/restricted Translation-en_US
Ign lucid/universe Translation-en_US
Ign lucid/multiverse Translation-en_US
Hit lucid-updates Release.gpg
Ign lucid-updates/main Translation-en_US
Ign lucid-updates/restricted Translation-en_US
Ign lucid-updates/universe Translation-en_US
Ign lucid-updates/multiverse Translation-en_US
Hit lucid Release
Hit lucid-updates Release
Hit lucid/main Packages
Hit lucid/restricted Packages
Hit lucid/restricted Sources
Hit lucid/main Sources
Hit lucid/multiverse Sources
Hit lucid/universe Sources
Hit lucid/universe Packages
Hit lucid/multiverse Packages
Hit lucid-updates/main Packages
Hit lucid-updates/restricted Packages
Hit lucid-updates/restricted Sources
Hit lucid-updates/main Sources
Hit lucid-updates/multiverse Sources
Hit lucid-updates/universe Sources
Hit lucid-updates/universe Packages
Hit lucid-updates/multiverse Packages
Err lucid Release.gpg
  Something wicked happened resolving '' (-5 - No address associated with hostname)
Hit lucid Release
Hit lucid/main Sources
Hit lucid/restricted Sources
Fetched 189B in 10s (18B/s)
W: Failed to fetch Something wicked happened resolving '' (-5 - No address associated with hostname)

E: Some index files failed to download, they have been ignored, or old ones used instead.

I get the error when i use the update manager:

E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/dpkg/status
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report.

Xuacu Saturio (xuacusk8) said : #4

I understand that you've already installed Ubuntu and it fails to update after installation, right?
It looks as if the connection to the repositories is failing (at least, it fails to fetch the file Release.gpg from

Try this: open «System->Administration->Software sources». Then change your download server in the dropdown menu «Download from:» (or similar words, I'm using a localized version); select «Other...» and then click on the «Select best server» button. When you're done, update your sources with the command («apt-get update» from Terminal) and try again.

Good luck!

David Lundell (petdevildoll) said : #5

I found the answer to my problems i was searching through google and stumbled apon someone who was having a similer problem to me and i got this scrip:

get_control_info ()
for i in /var/lib/apt/lists/*_Packages
sed '/Package: '"$1"'$/,/^$/!d' $i

for i in /var/lib/dpkg/info/*.list
package_name=`basename $i | sed 's/.list$//'`
get_control_info $package_name >> status-new

sed -i -e '/^Filename: .*/d' -e '/^MD5sum:/d' -e '/^SHA1:/d' -e '/^SHA256:/d' status-new
sed -i '/^Package: /a\Status: install ok installed' status-new

it works great now and everything looks like it works just fine, thanks for all the help.