Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Fixing apt-get

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Sackboy
Posts: 6
Joined: 2012-09-01 17:18

Fixing apt-get

#1 Post by Sackboy »

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

User avatar
golinux
Posts: 1579
Joined: 2010-12-09 00:56
Location: not a 'buntard!
Been thanked: 1 time

Re: Fixing apt-get

#2 Post by golinux »

May the FORK be with you!

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Fixing apt-get

#3 Post by dasein »

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
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: Fixing apt-get

#4 Post by nadir »

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
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: Fixing apt-get

#5 Post by craigevil »

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.
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

User avatar
golinux
Posts: 1579
Joined: 2010-12-09 00:56
Location: not a 'buntard!
Been thanked: 1 time

Re: Fixing apt-get

#6 Post by golinux »

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!

Sackboy
Posts: 6
Joined: 2012-09-01 17:18

Re: Fixing apt-get

#7 Post by Sackboy »

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:

Post Reply