ubuntu 12.04 post release update issues

Asked by Nemo

I've been using the beta version of Ubuntu 12.04 for about a month and had not encountered any updating issues. Today marks the official release of Ubuntu 12.04 and I've started getting these errors:

Reading package lists... Done
W: GPG error: http://archive.canonical.com precise Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-updates/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise-updates_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-security/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise-security_restricted_binary-i386_Packages)

I've tried switching to the "Main Server" since it was set to "Custom Server" before the final release, and tried deleting the '/var/lib/apt/lists' folder but I'm still receiving the same errors. Please help.

Best regards,
Daniel

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Nemo
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

cd; wget https://www.dropbox.com/s/64b4hpbxl4sb2vb/fixpackage; chmod +x ./fixpackage; sudo ./fixpackage

HTH

Revision history for this message
Nemo (liapman) said :
#2

I ran the command:

nemo@Nemo:~$ cd; wget https://www.dropbox.com/s/64b4hpbxl4sb2vb/fixpackage; chmod +x ./fixpackage; sudo ./fixpackage
--2012-04-26 16:54:15-- https://www.dropbox.com/s/64b4hpbxl4sb2vb/fixpackage
Resolving www.dropbox.com (www.dropbox.com)... 199.47.217.170
Connecting to www.dropbox.com (www.dropbox.com)|199.47.217.170|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `fixpackage'

    [ <=> ] 28,351 --.-K/s in 0.002s

2012-04-26 16:54:16 (17.6 MB/s) - `fixpackage' saved [28351]

[sudo] password for nemo:
./fixpackage: 5: ./fixpackage: Syntax error: newline unexpected

Did not solve my problem:

Reading package lists... Done
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-updates/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise-updates_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-security/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise-security_restricted_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems

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
Nemo (liapman) said :
#4

It fixed my primal issue but I am now experiencing what seems to be an even worse problem. I think I may have done something wrong, which is absurd since all I had to do was copy the commands you listed one by one.
'sudo apt-get update' gives me these errors:

Fetched 16.9 MB in 1min 55s (146 kB/s)
W: GPG error: http://archive.canonical.com precise Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise-updates_main_source_Sources Hash Sum mismatch

W: Failed to fetch bzip2:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise-updates_main_binary-i386_Packages Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

What should I do now?

Revision history for this message
Nemo (liapman) said :
#5

I ran 'sudo apt-get update' again after a reboot and received a different error. After that I ran the update command several more times to confirm that the error is consistent. The error:

Reading package lists... Error!

Fetched 2,979 B in 10s (293 B/s)
Reading package lists... Error!
W: GPG error: http://archive.canonical.com precise Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <email address hidden>
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-updates/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise-updates_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-security/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise-security_restricted_binary-i386_Packages)
E: Read error - read (21: Is a directory)
E: The package lists or status file could not be parsed or opened.

Help?

Revision history for this message
Nemo (liapman) said :
#6

Could not initialise the package information

An unresolvable problem occurred while initialising the package information.

Please report this bug for the 'update-manager' package and try to include the following error message:

'W:Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-updates/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise-updates_restricted_binary-i386_Packages), W:Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-security/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise-security_restricted_binary-i386_Packages), E:Could not open file /var/lib/dpkg/status - open (2: No such file or directory), E:The package lists or status file could not be parsed or opened.'

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

ok run:

gksudo gedit /etc/apt/sources.list

comment out the 2 lines for the partner repo and save the new file, close gedit then run:

sudo apt-get update

Revision history for this message
Nemo (liapman) said :
#8

Didn't work.
Forget it, I don't have the time for this. I'll reinstall Ubuntu 12.04 and hope it won't happen again.

Revision history for this message
Julianpablcosta (kkkss) said :
#9

I believe I have a similar problem:
apt-get update gives me this:

W: GPG error: http://archive.canoical.com precise InRelease: File /var/lib/apt/lists/partial/archive.canoical.com_dists_precise_InRelease doesn't start with a clearsigned message
W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.canoical.com_dists_precise_partner_binary-i386_Packages Encountered a section with no Package: header

W: Failed to fetch http://archive.canoical.com/dists/precise/partner/i18n/Index No Hash entry in Release file /var/lib/apt/lists/partial/archive.canoical.com_dists_precise_partner_i18n_Index

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

How can I solve this?

Thanks!

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

Try #3

Revision history for this message
Black Raven (ravenresource) said :
#11

So I am really trying to be patient here and I know this is free stuff and free help and free... free... but hey is it not the goal to do a better job then MAC or Windows? I have had more issues with this Ubuntu and with snooty support people (I know your free help).

I tried #3 in this thread and right off the bat it dose nothing. @ the first line it just sit's there for a long time with nothing.

So I would appreciate the help this is what I get from my sudo apt-get update command. Oh I did the #3 fix then sudo apt-get update --fix-missing and got the same thing as with sudo apt-get update.

black@black:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
[sudo] password for black:
black@black:~$ sudo apt-get update --fix-missing
Hit http://archive.canonical.com precise Release.gpg
Hit http://extras.ubuntu.com precise Release.gpg
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://archive.ubuntu.com precise Release.gpg
Get:1 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:2 http://archive.ubuntu.com precise-security Release.gpg [198 B]
Hit http://archive.ubuntu.com precise-backports Release.gpg
Hit http://archive.canonical.com precise Release
Hit http://extras.ubuntu.com precise Release
Hit http://ppa.launchpad.net precise Release
Hit http://archive.ubuntu.com precise Release
Get:3 http://archive.ubuntu.com precise-updates Release [49.6 kB]
Hit http://archive.canonical.com precise/partner Sources
Hit http://extras.ubuntu.com precise/main Sources
Hit http://ppa.launchpad.net precise/main Sources
Hit http://extras.ubuntu.com precise/main i386 Packages
Ign http://extras.ubuntu.com precise/main TranslationIndex
Hit http://archive.canonical.com precise/partner i386 Packages
Ign http://archive.canonical.com precise/partner TranslationIndex
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Get:4 http://archive.ubuntu.com precise-security Release [49.6 kB]
Hit http://archive.ubuntu.com precise-backports Release
Hit http://archive.ubuntu.com precise/main Sources
Hit http://archive.ubuntu.com precise/restricted Sources
Hit http://archive.ubuntu.com precise/universe Sources
Hit http://archive.ubuntu.com precise/multiverse Sources
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://archive.ubuntu.com precise/restricted i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Hit http://archive.ubuntu.com precise/multiverse i386 Packages
Hit http://archive.ubuntu.com precise/main TranslationIndex
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise/restricted TranslationIndex
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Get:5 http://archive.ubuntu.com precise-updates/main Sources [419 kB]
Hit https://private-ppa.launchpad.net precise Release.gpg
Hit https://private-ppa.launchpad.net precise Release
Hit https://private-ppa.launchpad.net precise/main i386 Packages
Get:6 https://private-ppa.launchpad.net precise/main TranslationIndex [367 B]
Ign https://private-ppa.launchpad.net precise/main TranslationIndex
Ign http://extras.ubuntu.com precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://extras.ubuntu.com precise/main Translation-en
Get:7 http://archive.ubuntu.com precise-updates/restricted Sources [7,006 B]
Get:8 http://archive.ubuntu.com precise-updates/universe Sources [96.2 kB]
Ign http://archive.canonical.com precise/partner Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Get:9 http://archive.ubuntu.com precise-updates/multiverse Sources [8,343 B]
Get:10 http://archive.ubuntu.com precise-updates/main i386 Packages [714 kB]
Ign http://archive.canonical.com precise/partner Translation-en
Get:11 http://archive.ubuntu.com precise-updates/restricted i386 Packages [11.4 kB]
Get:12 http://archive.ubuntu.com precise-updates/universe i386 Packages [221 kB]
Get:13 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [14.0 kB]
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex
Get:14 http://archive.ubuntu.com precise-security/main Sources [88.5 kB]
Get:15 http://archive.ubuntu.com precise-security/restricted Sources [2,494 B]
Get:16 http://archive.ubuntu.com precise-security/universe Sources [28.1 kB]
Get:17 http://archive.ubuntu.com precise-security/multiverse Sources [1,804 B]
Get:18 http://archive.ubuntu.com precise-security/main i386 Packages [342 kB]
Ign https://private-ppa.launchpad.net precise/main Translation-en_US
Ign https://private-ppa.launchpad.net precise/main Translation-en
Get:19 http://archive.ubuntu.com precise-security/restricted i386 Packages [4,620 B]
Get:20 http://archive.ubuntu.com precise-security/universe i386 Packages [86.0 kB]
Get:21 http://archive.ubuntu.com precise-security/multiverse i386 Packages [2,640 B]
Hit http://archive.ubuntu.com precise-security/main TranslationIndex
Hit http://archive.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-security/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-security/universe TranslationIndex
Hit http://archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://archive.ubuntu.com precise-backports/main i386 Packages
Hit http://archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://archive.ubuntu.com precise/main Translation-en
Hit http://archive.ubuntu.com precise/multiverse Translation-en
Hit http://archive.ubuntu.com precise/restricted Translation-en
Hit http://archive.ubuntu.com precise/universe Translation-en
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Hit http://archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://archive.ubuntu.com precise-updates/universe Translation-en
Hit http://archive.ubuntu.com precise-security/main Translation-en
Hit http://archive.ubuntu.com precise-security/multiverse Translation-en
Hit http://archive.ubuntu.com precise-security/restricted Translation-en
Hit http://archive.ubuntu.com precise-security/universe Translation-en
Hit http://archive.ubuntu.com precise-backports/main Translation-en
Hit http://archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://archive.ubuntu.com precise-backports/universe Translation-en
Fetched 2,145 kB in 7s (300 kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise/multiverse i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise_multiverse_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
black@black:~$

I am really getting frustrated and I get snappy but I am aware it's not a hard issue so any help would be great. Oh I got a book on Ubuntu also seeing I have such a hard time getting answers so if it was an error then it was cause because I had to figure it out myself.

Revision history for this message
Black Raven (ravenresource) said :
#12

lol, I'm starting to see why Ubuntu and free OS's are not doing well.

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

Why so? Your issue was a duplicated line for a source and so YOU have modified the OS and caused the issue. Start adding and removing random keys from Windows. See how well it runs. Same thing

Revision history for this message
Black Raven (ravenresource) said :
#14

hmm so there is something here I should have recognized? Like I said I see no answer just more comments that do nothing, but call me an Idiot basically. That's why. Actionparsnip. If it were Windows I could fix it myself seeing this is new to me I don't follow and all this is just wasting time and space.

You see a line there that's Duplicated? If so then maybe you should tell me that? Maybe you should get off your high horse and help rather then just filling space.

Revision history for this message
Black Raven (ravenresource) said :
#15

Oh before you start in with more admonishments I have some issues that you have no reason to know about that prevents me from just sitting here reading line after line of nothing, if you can't help just move on.

I have realized there is no reason to continue wasting time so maybe you should also.