Fixing apt-get

Kernels & Hardware, configuring network, installing services

Fixing apt-get

Postby Sackboy » 2012-09-01 18:58

Hi, I'm having apt-get dependencies issues:

Code: Select all
root@eden:~# 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/main Translation-en
Hit http://security.debian.org squeeze/updates Release
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/main amd64 Packages
Hit http://security.debian.org squeeze/updates/contrib amd64 Packages
Reading package lists... Done
root@eden:~# apt-get install mysql-server mysql-client
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mysql-client : Depends: mysql-client-5.1 but it is not going to be installed
 mysql-server : Depends: mysql-server-5.1 but it is not going to be installed
E: Broken packages
root@eden:~#


Any idea how to fix this issue?

Below are my /etc/apt/sources.list:

Code: Select all
root@eden:~# cat /etc/apt/sources.list
#

# deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official amd64 DVD Binary-1 20120512-14:34]/ squeeze contrib main

# deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official amd64 DVD Binary-1 20120512-14:34]/ squeeze contrib main

# Line commented out by installer because it failed to verify:
deb http://security.debian.org/ squeeze/updates main contrib
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/ squeeze/updates main contrib
Sackboy
 
Posts: 6
Joined: 2012-09-01 17:18

Re: Fixing apt-get

Postby golinux » 2012-09-01 19:08

May the FORK be with you!
User avatar
golinux
 
Posts: 1511
Joined: 2010-12-09 00:56
Location: not a 'buntard!

Re: Fixing apt-get

Postby dasein » 2012-09-01 19:14

Sackboy wrote:Hi, I'm having apt-get dependencies issues:

No, you have a sources issue. The only thing you can install at this point is security updates.

Sackboy wrote:Any idea how to fix this issue?

Yes. Fix your sources.list file to include something other than security fixes.

Here's some resources you should have consulted before posting:
http://wiki.debian.org/Apt
http://wiki.debian.org/apt-get
http://wiki.debian.org/SourcesList
http://www.debian.org/doc/manuals/debia ... 02.en.html

Edit: I see golinux beat me to it. Ah well.
User avatar
dasein
 
Posts: 7775
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Fixing apt-get

Postby nadir » 2012-09-01 19:22

You need to add a line similar to this:
Code: Select all
deb http://ftp.us.debian.org/debian/ squeeze main 

With "us" after "ftp" being the country code for UnitedStates.
Once edited run "apt-get update" (or use aptitude or synaptic or whatever is there)

Ignore the post by golinux. It doesn't answer your question and may lead to very unexpected results.
(The link itself is good, but not in this case and not without any further comments)
Like all real realists he has got no clue what he is speaking about.

Edit: bold'ed something to make it more clear.
Last edited by nadir on 2012-09-01 20:48, edited 1 time in total.
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.
User avatar
nadir
 
Posts: 5964
Joined: 2009-10-05 22:06
Location: away

Re: Fixing apt-get

Postby craigevil » 2012-09-01 20:43

nadir wrote:You need to add a line similar to this:
Code: Select all
deb http://ftp.us.debian.org/debian/ squeeze main 

With "us" after "ftp" being the country code for UnitedStates.
Once edited run "apt-get update" (or use aptitude or synaptic or whatever is there)

Ignore the post by golinux. It doesn't answer your question and may lead to very unexpected results.
(The link itself is good, but not in this case and not without any further comments)
Like all real realists he has got no clue what he is speaking about.


No actually if you follow the link he posted it leads to my Giant sources.list, if one is smart enough to use the repos under Stable you will have no problems. It also has links to Debian documentation which would be helpful in this case.

Granted if you are insane enough to add the entire list your computer will probably blow up.
Debian Sid KDE Kernel 3.17 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5192
Joined: 2006-09-17 03:17
Location: Oz

Re: Fixing apt-get

Postby golinux » 2012-09-01 21:58

craigevil wrote:
nadir wrote:Ignore the post by golinux. It doesn't answer your question and may lead to very unexpected results.
(The link itself is good, but not in this case and not without any further comments)
Like all real realists he has got no clue what he is speaking about.

No actually if you follow the link he posted it leads to my Giant sources.list, if one is smart enough to use the repos under Stable you will have no problems. It also has links to Debian documentation which would be helpful in this case.

:mrgreen:

Hey guys . . . Just keeping it 'real' . . . it's cool to be included in the boys club even though I lack the required appendage!! :lol:

craigevil's giant source list is the mother of all source lists!!!
May the FORK be with you!
User avatar
golinux
 
Posts: 1511
Joined: 2010-12-09 00:56
Location: not a 'buntard!

Re: Fixing apt-get

Postby Sackboy » 2012-09-02 01:57

I fixed my /etc/apt/sources.list and now it's fixed :lol:

Thank you for your help guys :D

Have a great day all :wink:
Sackboy
 
Posts: 6
Joined: 2012-09-01 17:18


Return to System configuration

Who is online

Users browsing this forum: pythagorasmk and 13 guests

fashionable