LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-26-2012, 10:11 PM   #1
gerdy
Member
 
Registered: May 2012
Posts: 69

Rep: Reputation: Disabled
Package manager error on ubuntu 12.04


hey, so I posted a little while ago on a package manager error I have. it is keeping me from doing any kind of apt-get or any kind of updates.

i already tried running apt-get install updates in terminal but not getting anywhere with it.

this is what I got with the sudo apt-get install apt-get install updates.

E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise-updates_multiverse_binary-i386_Packages
E: The package lists or status file could not be parsed or open

if I delete the file above would that remove the package manager or what would the consequences be?

Does anyone have any ideas on how to solve this?
 
Old 08-26-2012, 10:52 PM   #2
gerdy
Member
 
Registered: May 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
i tried to remove the file that appears to be causing the issue but it won't delete.


sudo rm /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists-precise-updates_multiverse_binary-i386_Packages
rm: cannot remove `/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists-precise-updates_multiverse_binary-i386_Packages': No such file or directory


that's what I get with the rm but when I do ls, i see the packages file right above the input line.
 
Old 08-26-2012, 11:48 PM   #3
gerdy
Member
 
Registered: May 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
i removed the file, ran an apt-get install updates and ended up with the obvious "unable to locate package updates" because I deleted it. so basically the updates didn't install because I now no longer have the "/var/apt/lists/us.archive.ubuntu.com_ubuntu_dists-precise-updates_multiverse_binary-i386_Packages" file.
 
Old 08-26-2012, 11:55 PM   #4
gerdy
Member
 
Registered: May 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
here is a copy of my sources.list file.

# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
 
Old 08-26-2012, 11:59 PM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

did you remember to run:
Code:
sudo apt-get update
?

Also, I just did a quick search at packages.ubuntu.com and there doesn't appear to be any package called "updates", so I would not expect "sudo apt-get install updates" to work anyway. What is it that you are trying to do?

Evo2.
 
Old 08-27-2012, 12:02 AM   #6
gerdy
Member
 
Registered: May 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
okay. so from what I can tell is that there is a problem with the packages file under the multiverse section because both of those were part of the file name "us.archive.ubuntu.com_ubuntu_dists_precise-updates_multiverse_binary-i386_Packages" so, what do I need to do to repair this?
 
Old 08-27-2012, 12:03 AM   #7
gerdy
Member
 
Registered: May 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
yes I did sudo apt-get update, and got what it said, and then I thought I put it in wrong and tried sudo apt-get install updates and got the same thing coming up.
 
Old 08-27-2012, 12:05 AM   #8
gerdy
Member
 
Registered: May 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
my package manager is not functioning. I can't download anything, I can't get updates, I can't get any kind of new software on my computer. the only way of getting new software on my computer is through the browser.
 
Old 08-27-2012, 12:10 AM   #9
gerdy
Member
 
Registered: May 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
ha, got it. I tried running the apt-get update again because the red circle went away in the top right of the screen for the back package manager and it seems to be working.
 
Old 08-27-2012, 12:12 AM   #10
gerdy
Member
 
Registered: May 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
now it won't let me install the updates because "this action requires the installation of untrusted packages" how do I fix this?
 
Old 08-27-2012, 12:17 AM   #11
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Quote:
Originally Posted by gerdy View Post
yes I did sudo apt-get update
Your earlier posts did not mention it.

Please try running
Code:
sudo apt-get update
again and cut and paste the command you ran and all the output (in [code] tags) here on the forum.


Quote:
and then I thought I put it in wrong and tried sudo apt-get install updates and got the same thing coming up.
The error message you posted is constant with running "sudo apt-get install updates", but not not with running "sudo apt-get update".


Evo2.
 
Old 08-27-2012, 12:26 AM   #12
gerdy
Member
 
Registered: May 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
ok. I pressed detail and it says the package "patch" was the untrusted one. I unchecked it and it still says it is trying to install "patch"
 
Old 08-27-2012, 12:36 AM   #13
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Quote:
ok. I pressed detail and it says the package "patch" was the untrusted one. I unchecked it and it still says it is trying to install "patch"
Hmm, so I take it you are using some sort of gui package manager now instead of apt-get...

Anyway you should be able to tell apt to not install that package by running the following command:
Code:
echo "patch deinstall" | sudo dpkg --set-selections
Unfortunately if you don't provide the information I've asked for I'm afraid there is not much I can do to help.

Evo2.
 
Old 08-27-2012, 12:39 AM   #14
gerdy
Member
 
Registered: May 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
ok, I think I got it. I'm marking it as solved. thanks for your help.
 
Old 08-27-2012, 12:43 AM   #15
kedarp
Member
 
Registered: Jul 2012
Distribution: Ubuntu
Posts: 198
Blog Entries: 3

Rep: Reputation: 23
I had similar problems before. Here is the link to my thread.

http://www.linuxquestions.org/questi...er-4175421553/

You will find the link to other threads in my thread, that solved the issue.

Regards.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 8.04 Synaptic Package Manager BACTRATE Ubuntu 6 04-26-2008 10:05 AM
ERROR on Package Manager himalakas Linux - Software 3 03-04-2008 08:28 PM
mobiale manager package for ubuntu m_torabi Ubuntu 0 08-08-2007 05:20 AM
Package Manager Error bullit.mosh Linux - Software 4 04-07-2007 03:47 AM
Package Manager Error (Ubuntu 6.06) tjl30 Ubuntu 0 02-26-2007 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration