LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-24-2009, 05:34 AM   #1
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Rep: Reputation: 30
Install package


I would lie to install ntp to my debian ( apt-get install ntp ) , but it pop to below messages , it seems the existing library is not support the version that I am installing , if it is the case , except update my existing library , what can i do ? can I download the older version of ntp to install ? where can I find it ? thx


You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libgd2-xpm: Depends: libc6 (>= 2.7-1) but 2.3.2.ds1-22 is to be installed
Depends: libfontconfig1 (>= 2.4.0) but 2.3.1-2 is to be installed
Depends: libfreetype6 (>= 2.3.5) but 2.1.7-2.4 is to be installed
Depends: libpng12-0 (>= 1.2.13-4) but 1.2.8rel-1 is to be installe
d
ntp: Depends: lsb-base (>= 3.0-3) but it is not going to be installed
Depends: libc6 (>= 2.3.6-6) but 2.3.2.ds1-22 is to be installed
Depends: libreadline5 (>= 5.2) but it is not going to be installed
Depends: libssl0.9.8 (>= 0.9.8c-1) but it is not going to be installed
php4-gd: Depends: libt1-5 (>= 5.0.2) but it is not going to be installed
Depends: php4-common (= 4:4.3.10-22) but 4:4.3.10-16 is to be install
ed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a s
olution).
 
Old 08-24-2009, 09:00 AM   #2
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Jessie Amd64
Posts: 1,477

Rep: Reputation: Disabled
It appears to work for me:

Code:
ade@Pc1:~$ aptitude -s install ntp
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
The following NEW packages will be installed:
  ntp 
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 480kB of archives. After unpacking 1184kB will be used.
Would download/install/remove packages.
Can you post the output of the following commands run from a console/terminal:

cat /etc/debian_version
cat /etc/apt/sources.list

Then we will have a better understanding of the problem.
 
Old 08-24-2009, 09:49 AM   #3
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by the trooper View Post
It appears to work for me:

Code:
ade@Pc1:~$ aptitude -s install ntp
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
The following NEW packages will be installed:
  ntp 
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 480kB of archives. After unpacking 1184kB will be used.
Would download/install/remove packages.
Can you post the output of the following commands run from a console/terminal:

cat /etc/debian_version
cat /etc/apt/sources.list

Then we will have a better understanding of the problem.
cat /etc/debian_version
4.0

cat /etc/apt/sources.list
deb http://security.debian.org/ stable/updates main
deb http://ftp.uk.debian.org/debian/ stable main
 
Old 08-24-2009, 10:55 AM   #4
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Jessie Amd64
Posts: 1,477

Rep: Reputation: Disabled
Well there's your problem!.
You appear to be running Debian 4.0,which is Etch or Oldstable.
But your sources.list is pointing to Stable which is now Lenny.
This is why you are getting the dependency errors.

You have a couple of options:

1,You can upgrade to Lenny from your existing installation,it should work but i can't guarantee it.
Debian is usually pretty good at upgrading from one release to the next.

2,You can download the Lenny netinstall disc and reinstall:

http://www.uk.debian.org/distrib/netinst

Obviously you will need to back up any important data before doing this.
Let us know how you want to proceed,and if we can help further.
 
Old 08-25-2009, 02:40 AM   #5
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Original Poster
Rep: Reputation: 30
thx reply ,

instead of re-install the Lenny version ( the re-installation seems too risky for us ) , can I remain the current Debian version but change the source.list to pointing to the old version ? thx
 
Old 08-25-2009, 02:52 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

Re-installing is really not necessary. You can easily upgrade from Etch to Lenny, it just takes some time. Also it's better to be on a current release. I've upgraded my share of Etch servers to Lenny in a production environment without any problems following this Upgrade Manual. Haven't encountered any real problems with it, just take it one step at the time.

Kind regards,

Eric
 
Old 08-25-2009, 03:43 AM   #7
elainelaw
Member
 
Registered: Jan 2008
Posts: 258

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by EricTRA View Post
Hello,

Re-installing is really not necessary. You can easily upgrade from Etch to Lenny, it just takes some time. Also it's better to be on a current release. I've upgraded my share of Etch servers to Lenny in a production environment without any problems following this Upgrade Manual. Haven't encountered any real problems with it, just take it one step at the time.

Kind regards,

Eric
the reply ,

But I am not familiar with it , I don't want to take any risk .

As my previous request , can I remain the current old version and point to the relative old source.list ?
 
Old 08-25-2009, 03:53 AM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Yes you can stay on the old version if that is what you prefer, but you'll have to change your sources.list file in order to point to the correct (etch) repository like this for example:
Code:
deb http://ftp.es.debian.org/debian/ etch main
deb-src http://ftp.es.debian.org/debian/ etch main

deb http://security.debian.org/ etch/updates main
deb-src http://security.debian.org/ etch/updates main

deb http://volatile.debian.org/debian-volatile etch/volatile main
deb-src http://volatile.debian.org/debian-volatile etch/volatile main
NOTE: this is for Spain mirror, change location 'es' to your location if necessary.

If the package ntp doesn't install using apt-get from those repositories you can always download it and install it manually. The appropriate package can be found here.

Kind regards,

Eric
 
Old 08-25-2009, 09:47 AM   #9
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Jessie Amd64
Posts: 1,477

Rep: Reputation: Disabled
Quote:
Originally Posted by EricTRA View Post
Yes you can stay on the old version if that is what you prefer, but you'll have to change your sources.list file in order to point to the correct (etch) repository like this for example:
Code:
deb http://ftp.es.debian.org/debian/ etch main
deb-src http://ftp.es.debian.org/debian/ etch main

deb http://security.debian.org/ etch/updates main
deb-src http://security.debian.org/ etch/updates main

deb http://volatile.debian.org/debian-volatile etch/volatile main
deb-src http://volatile.debian.org/debian-volatile etch/volatile main
NOTE: this is for Spain mirror, change location 'es' to your location if necessary.

If the package ntp doesn't install using apt-get from those repositories you can always download it and install it manually. The appropriate package can be found here.

Kind regards,

Eric
There's one caveat with this.
If the op has done any updates with the current sources.list pointing to Lenny,there will be packages installed already.
This may cause problems when reverting back to Etch.
 
  


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
RPM package during install can or cannot define the install location? hocheetiong Linux - Software 1 09-10-2007 02:33 PM
Install a package: Manual Install (Mandrake 10.0) kobayashy Linux - Newbie 11 01-11-2006 07:26 PM
Is there a way to install package *groups* post-install (LM10.1) ColKurtz Mandriva 1 02-20-2005 02:28 AM
Fedora Core 2 Install failing during package install Sledge Fedora - Installation 1 06-02-2004 10:23 AM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 07:12 PM


All times are GMT -5. The time now is 06:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration