LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
  Search this Thread
Old 02-03-2014, 04:17 PM   #1
actmnophn
Member
 
Registered: Mar 2008
Posts: 53

Rep: Reputation: 15
apt-get broken no packages can install


Any packages i try to install all give me the same error. Even after I run apt-get update as root here is the error:
Code:
root@GoFlexSqueeze:~# apt-get install mc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mc' has no installation candidate
root@GoFlexSqueeze:~#
my sources.list is also in order i think. Here it is:
Code:
root@GoFlexSqueeze:~# cat /etc/apt/sources.list
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.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free

root@GoFlexSqueeze:~#
 
Old 02-03-2014, 05:18 PM   #2
Tadaen
Member
 
Registered: Sep 2005
Distribution: Arch
Posts: 210

Rep: Reputation: 39
Sources list look short to me but I don't know squeeze. How long do they keep old repos going? If apt-get update is working fine then apt-get is fine I would guess. They just cleaned out obsolete software. It happens. You will need to find and compile is what I'm thinking.

Last edited by Tadaen; 02-03-2014 at 05:23 PM.
 
Old 02-03-2014, 11:39 PM   #3
actmnophn
Member
 
Registered: Mar 2008
Posts: 53

Original Poster
Rep: Reputation: 15
*any* package i try fails.
 
Old 02-04-2014, 05:15 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Tadaen View Post
Sources list look short to me but I don't know squeeze.
The sources.list is OK, it has the main repositories and the security repositories.
Quote:
How long do they keep old repos going?
Squeeze repos will be available until May 2014.
Quote:
They just cleaned out obsolete software. It happens. You will need to find and compile is what I'm thinking.
No, that does not happen on Debian's Stable and Oldstable versions.

@actmnophn: Please provide the complete output of
Code:
apt-get update
apt-cache policy mc
 
Old 02-04-2014, 05:21 AM   #5
pingwinowiewc
Member
 
Registered: Feb 2014
Location: Europe
Distribution: Debian, Mint, Arch (multiboot)
Posts: 90

Rep: Reputation: Disabled
wow it seems there is sth wrong thereinafter your system.....
If I were you, I would reinstall apt-get architecture-driven command.
Or reinstall whole OS.....
 
Old 02-04-2014, 07:37 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by pingwinowiewc View Post
wow it seems there is sth wrong thereinafter your system.....
If I were you, I would reinstall apt-get architecture-driven command.
Or reinstall whole OS.....
Why should the OP reinstall the system instead of just fixing it? This is not Windows where reinstalling is often the only reasonable choice due to its closed nature.
 
1 members found this post helpful.
Old 02-04-2014, 11:10 AM   #7
actmnophn
Member
 
Registered: Mar 2008
Posts: 53

Original Poster
Rep: Reputation: 15
I replaced mc with wicd-curses because thats what I really want to install and dont want to have confusion later on.
Code:
root@GoFlexSqueeze:~# apt-get update
Hit http://security.debian.org squeeze/updates Release.gpg
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en_US
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en_US
Ign http://security.debian.org/ squeeze/updates/non-free Translation-en
Ign http://security.debian.org/ squeeze/updates/non-free Translation-en_US
Hit http://security.debian.org squeeze/updates Release
Hit http://ftp.debian.org squeeze Release.gpg
Ign http://ftp.debian.org/debian/ squeeze/contrib Translation-en
Ign http://ftp.debian.org/debian/ squeeze/contrib Translation-en_US
Ign http://ftp.debian.org/debian/ squeeze/main Translation-en
Ign http://ftp.debian.org/debian/ squeeze/main Translation-en_US
Ign http://ftp.debian.org/debian/ squeeze/non-free Translation-en
Ign http://ftp.debian.org/debian/ squeeze/non-free Translation-en_US
Hit http://security.debian.org squeeze/updates/main Sources
Hit http://security.debian.org squeeze/updates/contrib Sources
Hit http://security.debian.org squeeze/updates/non-free Sources
Hit http://security.debian.org squeeze/updates/main armel Packages
Hit http://security.debian.org squeeze/updates/contrib armel Packages
Hit http://security.debian.org squeeze/updates/non-free armel Packages
Hit http://ftp.debian.org squeeze Release
Hit http://ftp.debian.org squeeze/main Sources
Hit http://ftp.debian.org squeeze/contrib Sources
Hit http://ftp.debian.org squeeze/non-free Sources
Hit http://ftp.debian.org squeeze/main armel Packages
Hit http://ftp.debian.org squeeze/contrib armel Packages
Hit http://ftp.debian.org squeeze/non-free armel Packages
Reading package lists... Done
root@GoFlexSqueeze:~# apt-cache policy wicd-curses
wicd-curses:
  Installed: (none)
  Candidate: (none)
  Version table:
     1.7.0+ds1-5+squeeze3 0
        -10 http://ftp.debian.org/debian/ squeeze/main armel Packages
        100 /var/lib/dpkg/status
root@GoFlexSqueeze:~#
btw I also did try to reinstall apt before posting and it did not help...
Code:
root@GoFlexSqueeze:~# apt-get install apt --reinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/2,143 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 26029 files and directories currently installed.)
Preparing to replace apt 0.8.10.3+squeeze1 (using .../apt_0.8.10.3+squeeze1_armel.deb) ...
Unpacking replacement apt ...
Setting up apt (0.8.10.3+squeeze1) ...
gpg: key F42584E6: "Lenny Stable Release Key <debian-release@lists.debian.org>" not changed
gpg: key 55BE302B: "Debian Archive Automatic Signing Key (5.0/lenny) <ftpmaster@debian.org>" not changed
gpg: key 6D849617: "Debian-Volatile Archive Automatic Signing Key (5.0/lenny)" not changed
gpg: key B98321F9: "Squeeze Stable Release Key <debian-release@lists.debian.org>" not changed
gpg: key 473041FA: "Debian Archive Automatic Signing Key (6.0/squeeze) <ftpmaster@debian.org>" not changed
gpg: key 46925553: "Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>" not changed
gpg: key 65FFB764: "Wheezy Stable Release Key <debian-release@lists.debian.org>" not changed
gpg: Total number processed: 7
gpg:              unchanged: 7
root@GoFlexSqueeze:~#
 
Old 02-05-2014, 02:44 AM   #8
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Looking good...

The reinstall of apt worked without error so wheres the real hickup? Ok mc was not found by apt but stayting that *any* package you install fails is wrong (see your output of apt-get install apt --reinstall).

In case you need a certain binary and can find which package it belongs to go to http://www.debian.org/distrib/packages and scroll down to "Search the contents of packages", hit the box with ", put in the name of the binary, hit " packages that contain files named like this " and go search it.
 
Old 02-07-2014, 12:11 AM   #9
actmnophn
Member
 
Registered: Mar 2008
Posts: 53

Original Poster
Rep: Reputation: 15
I am sorry I dont really understand what you mean.
 
Old 02-07-2014, 12:28 AM   #10
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,882

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
Quote:
Originally Posted by actmnophn View Post
Code:
root@GoFlexSqueeze:~# apt-cache policy wicd-curses
wicd-curses:
  Installed: (none)
  Candidate: (none)
  Version table:
     1.7.0+ds1-5+squeeze3 0
        -10 http://ftp.debian.org/debian/ squeeze/main armel Packages
        100 /var/lib/dpkg/status
The priority is set to -10 for some reason.

Do you have a /etc/apt/preferences file? (or something in preferences.d/)
 
1 members found this post helpful.
Old 02-07-2014, 12:47 AM   #11
actmnophn
Member
 
Registered: Mar 2008
Posts: 53

Original Poster
Rep: Reputation: 15
I do and here is what it says.
Code:
root@GoFlexSqueeze:~# cat /etc/apt/preferences
Package: *
Pin: release a=stable
Pin-Priority: 900

Package: *
Pin: release o=Debian
Pin-Priority: -10

root@GoFlexSqueeze:~# cat /etc/apt/preferences.d/*
Package: *
Pin: release n=ix, origin packages.omv-plugins.org
Pin-Priority: 995

Package: *
Pin: release n=donald, origin packages.omv-plugins.org
Pin-Priority: 995

Package: *
Pin: release n=glass, origin packages.omv-plugins.org
Pin-Priority: 995

Package: *
Pin: release n=omnius, origin packages.omv-plugins.org
Pin-Priority: 995

Package: *
Pin: release n=fedaykin, origin packages.omv-plugins.org
Pin-Priority: 995

Package: *
Pin: release n=fedaykin-armhf, origin packages.omv-plugins.org
Pin-Priority: 996
Package: *
Pin: origin ""
Pin-Priority: 995
root@GoFlexSqueeze:~#
 
Old 02-07-2014, 01:06 AM   #12
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,882

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
Well there you go.

You have "stable" pinned to a priority of 900, but "squeeze" as the release in your sources.list

If you change the pinning in preferences to say "squeeze" (then update) it should work (unless the o=Debian overrides it - I dunno - but you now know what to fiddle with ).
 
1 members found this post helpful.
Old 02-07-2014, 09:30 AM   #13
actmnophn
Member
 
Registered: Mar 2008
Posts: 53

Original Poster
Rep: Reputation: 15
I didn't fiddle with it. I axed it. Now it works. I renamed the file and:
Code:
root@GoFlexSqueeze:~# mv /etc/apt/preferences /etc/apt/preferences.bak
root@GoFlexSqueeze:~# apt-get update
Hit http://security.debian.org squeeze/updates Release.gpg
...
Reading package lists... Done
root@GoFlexSqueeze:~# apt-get install wicd-curses
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libffi5 libpcsclite1 python-dbus python-gobject python-iniparse
  python-support python-urwid python-wicd wicd-daemon wpasupplicant
Suggested packages:
  pcscd python-dbus-doc python-dbus-dbg python-gobject-dbg pm-utils wpagui
  libengine-pkcs11-openssl
The following NEW packages will be installed:
  libffi5 libpcsclite1 python-dbus python-gobject python-iniparse
  python-support python-urwid python-wicd wicd-curses wicd-daemon
  wpasupplicant
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,725 kB of archives.
After this operation, 6,698 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
...
Marking as solved.
Thanks!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to make apt-get ignore broken packages gujedan Debian 33 01-31-2013 05:16 PM
[SOLVED] how to make apt-get ignore broken packages and missing dependencies gujedan Linux - Networking 3 03-20-2011 02:54 PM
apt-get install error, E: Broken packages Slick666 Debian 1 07-13-2007 01:53 PM
Unmet Dependancies/Broken Packages - Can't apt-get Build-Install??? Xenoman1 Ubuntu 3 08-07-2006 04:38 AM
apt-get + broken packages = death ulaoulao Linux - Software 2 09-19-2004 10:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:47 PM.

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