LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 09-13-2011, 05:58 PM   #1
nine9nine
Member
 
Registered: Jan 2011
Distribution: Ubuntu
Posts: 123

Rep: Reputation: 1
Synaptic package manager won't open due to faulty package


Hi, everyone. I just recently encountered a problem where whenever I try to install or remove software, I would get an error, but it would still install anyway. I opened up the package manager and this error came up:
Code:
E: The package mfc210clpr needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.
I redownloaded the driver that needs to be reinstalled, but it won't reinstall. Please help because now I can't properly add or remove software.
 
Old 09-13-2011, 08:34 PM   #2
nine9nine
Member
 
Registered: Jan 2011
Distribution: Ubuntu
Posts: 123

Original Poster
Rep: Reputation: 1
Now I can't install or remove software. I tried to uninstall the driver that keeps appearing in the error messages, but it won't let me uninstall.
 
Old 09-13-2011, 09:31 PM   #3
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,880

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
In a terminal, try running sudo apt-get -f (-f means "fix")

Post any error messages you get here.

You might also post the contents of your /etc/apt/sources.list file (you can see it by running the command cat /etc/apt/sources.list.

If you do, please click the Go Advanced button at the bottom of the screen and surround the code excerpts with "code" tags.
 
Old 09-14-2011, 01:53 PM   #4
nine9nine
Member
 
Registered: Jan 2011
Distribution: Ubuntu
Posts: 123

Original Poster
Rep: Reputation: 1
I tried the first command and got:

Code:
colin@TheDarkSideOfTheMoon:~$ sudo apt-get -f
apt 0.8.3ubuntu7.1 for i386 compiled on Apr 26 2011 21:09:26
Usage: apt-get [options] command
       apt-get [options] install|remove pkg1 [pkg2 ...]
       apt-get [options] source pkg1 [pkg2 ...]

apt-get is a simple command line interface for downloading and
installing packages. The most frequently used commands are update
and install.

Commands:
   update - Retrieve new lists of packages
   upgrade - Perform an upgrade
   install - Install new packages (pkg is libc6 not libc6.deb)
   remove - Remove packages
   autoremove - Remove automatically all unused packages
   purge - Remove packages and config files
   source - Download source archives
   build-dep - Configure build-dependencies for source packages
   dist-upgrade - Distribution upgrade, see apt-get(8)
   dselect-upgrade - Follow dselect selections
   clean - Erase downloaded archive files
   autoclean - Erase old downloaded archive files
   check - Verify that there are no broken dependencies
   markauto - Mark the given packages as automatically installed
   unmarkauto - Mark the given packages as manually installed

Options:
  -h  This help text.
  -q  Loggable output - no progress indicator
  -qq No output except for errors
  -d  Download only - do NOT install or unpack archives
  -s  No-act. Perform ordering simulation
  -y  Assume Yes to all queries and do not prompt
  -f  Attempt to correct a system with broken dependencies in place
  -m  Attempt to continue if archives are unlocatable
  -u  Show a list of upgraded packages as well
  -b  Build the source package after fetching it
  -V  Show verbose version numbers
  -c=? Read this configuration file
  -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
                       This APT has Super Cow Powers.
The source list is:

Code:
colin@TheDarkSideOfTheMoon:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick 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/ maverick main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-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/ maverick universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick universe
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-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/ maverick multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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/ maverick-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe 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 maverick partner
# deb-src http://archive.canonical.com/ubuntu maverick 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 maverick main
deb-src http://extras.ubuntu.com/ubuntu maverick main

deb http://security.ubuntu.com/ubuntu maverick-security main restricted
deb-src http://security.ubuntu.com/ubuntu maverick-security main restricted
deb http://security.ubuntu.com/ubuntu maverick-security universe
deb-src http://security.ubuntu.com/ubuntu maverick-security universe
deb http://security.ubuntu.com/ubuntu maverick-security multiverse
deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse
deb http://ubuntu.mirror.cambrium.nl/ubuntu/ lucid main universe
deb-src http://ubuntu.mirror.cambrium.nl/ubuntu/ lucid main universe
I also tried this:

Code:
colin@TheDarkSideOfTheMoon:~$ sudo dpkg --remove --force-remove-reinstreq mfc210clpr
[sudo] password for colin: 
dpkg: warning: overriding problem because --force enabled:
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
(Reading database ... 152124 files and directories currently installed.)
Removing mfc210clpr ...
start: Unknown job: lprng
dpkg: error processing mfc210clpr (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 mfc210clpr
I'm not sure what to do now.
 
Old 09-14-2011, 08:10 PM   #5
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,880

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Hmmm, I would have expected more from apt-get -f. Maybe it needs the package name specified.

The repos in your sources list all appear to pretty normal Debian and Ubuntu repos. For comparison, here's mine from my Debian box.

Code:
deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.us.debian.org/debian/ squeeze main contrib non-free

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

deb http://ftp.us.debian.org/debian/ squeeze-proposed-updates contrib non-free main
deb-src http://ftp.us.debian.org/debian/ squeeze-proposed-updates contrib non-free main
Never having had to solve this kind of problem, I'm running out of ideas. Hopefully someone else with more smarts will help.

Here's one thought: Open Synaptic. If it reports any broken packages in the bottom margin, try Edit-->Fix Broken Packages.
 
Old 09-15-2011, 01:56 PM   #6
nine9nine
Member
 
Registered: Jan 2011
Distribution: Ubuntu
Posts: 123

Original Poster
Rep: Reputation: 1
I fixed it. I lost the link I found, but it said run the command

Code:
gksudo nautilus /var/lib/dpkg/info
Once it loads all of the files (it may take a while), delete all files associated with the problem package. I then tried to remove the package from the terminal, it said it couldn't find it, and then everything was fixed.
 
Old 09-15-2011, 02:51 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,868
Blog Entries: 2

Rep: Reputation: 3804Reputation: 3804Reputation: 3804Reputation: 3804Reputation: 3804Reputation: 3804Reputation: 3804Reputation: 3804Reputation: 3804Reputation: 3804Reputation: 3804
Quote:
Originally Posted by frankbell View Post
Hmmm, I would have expected more from apt-get -f.
May be that is because the correct command is
Code:
sudo apt-get -f install
 
1 members found this post helpful.
Old 09-15-2011, 07:30 PM   #8
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,880

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Thanks, TobiSGD. I must have misread something at the link where I found it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Difference Between Synaptic Package Manager and Update Manager nasser019 Linux - Software 1 07-20-2010 07:12 AM
Need wifi support for Broadcom 4318 -- synaptic package manager won't work DocNelsonPT Linux - Wireless Networking 1 03-31-2008 06:25 AM
Open office and synaptic package manager problem Greebstreebling Debian 14 04-15-2007 07:43 AM
LXer: Simple Package management with Synaptic Package Manager LXer Syndicated Linux News 0 12-05-2006 06:33 PM
synaptic package manager forcing me to delete a broken package mbman Linux - Software 6 04-25-2006 09:30 AM


All times are GMT -5. The time now is 04:31 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration