DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
no matter what i try and do i always get Unmet dependencies.
I am trying to install xorg on my system. But when i try i am getting this.
Code:
debian:~# apt-get install xorg
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
binutils: Depends: libc6 (>= 2.6-1) but 2.3.2.ds1-22sarge6 is to be installed
libc6-dev: Depends: libc6 (= 2.6.1-1+b1) but 2.3.2.ds1-22sarge6 is to be installed
locales: Depends: glibc-2.6-1
xorg: Depends: xserver-xorg
Depends: libglu1-mesa but it is not going to be installed
Depends: xfonts-base (>= 1:1.0.0-1) but it is not going to be installed
Depends: xfonts-100dpi (>= 1:1.0.0-1) but it is not going to be installed
Depends: xfonts-75dpi (>= 1:1.0.0-1) but it is not going to be installed
Depends: xfonts-scalable (>= 1:1.0.0-1) but it is not going to be installed
Depends: xbase-clients (>= 1:1.0.1-1) but 4.3.0.dfsg.1-14sarge4 is to be installed
Depends: xutils (>= 1:1.0.1-1) but it is not going to be installed
Depends: xkb-data but it is not going to be installed
Depends: sparc-utils but it is not installable or
not+sparc
Depends: xorg-docs but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
So, i try what it says and....
Code:
debian:~# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
libc6
Suggested packages:
glibc-doc
The following packages will be upgraded:
libc6
1 upgraded, 0 newly installed, 0 to remove and 681 not upgraded.
3 not fully installed or removed.
Need to get 0B/4405kB of archives.
After unpacking 4985kB disk space will be freed.
Do you want to continue? [Y/n] y
debconf: unable to initialize frontend: Gnome
debconf: (Unable to load Gnome -- is libgnome2-perl installed?)
debconf: falling back to frontend: Dialog
(Reading database ... 78329 files and directories currently installed.)
Preparing to replace libc6 2.3.2.ds1-22sarge6 (using .../libc6_2.6.1-1+b1_i386.deb) ...
Name Service Switch update in the C Library: pre-installation question.
Running services and programs that are using NSS need to be restarted,
otherwise they might not be able to do lookup or authentication any more.
The installation process is able to restart some services (such as ssh or
telnetd), but other programs cannot be restarted automatically. One such
program that needs manual stopping and restart after the glibc upgrade by
yourself is xdm - because automatic restart might disconnect your active
X11 sessions.
Known packages that need to be stopped before the glibc upgrade are:
xdm kdm gdm postgresql xscreensaver
This script detected the following installed services which must be
stopped before the upgrade:
gdm
If you want to interrupt the upgrade now and continue later, please
answer No to the question below.
Do you want to upgrade glibc now? [Y/n] y
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
WARNING: POSIX threads library NPTL requires kernel version
2.6.8 or later. If you use a kernel 2.4, please upgrade it
before installing glibc.
The installation of a 2.6 kernel _could_ ask you to install a new libc
first, this is NOT a bug, and should *NOT* be reported. In that case,
please add etch sources to your /etc/apt/sources.list and run:
apt-get install -t etch linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.6.1-1+b1_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.6.1-1+b1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I am unable to install xorg. I have tried all that i know and looking around turned up nothing. I have tried like apt-get update, upgrade and aptitude update etc.
Which version of Debian are you running? What does your /etc/apt/sources.list look like?
I usually install a naked Debian testing by deselecting everything in tasksel except for "standard system", then I install the x-window-system and KDE etc., all off the DVD as I'm on dial up and the modem drivers get built after I've got a desktop. Below are the steps I take:
None of that above worked junior hacker, i was gettin this.
Code:
debian:~# apt-get install x-window-system
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
binutils: Depends: libc6 (>= 2.6-1) but 2.3.2.ds1-22sarge6 is to be installed
libc6-dev: Depends: libc6 (= 2.6.1-1+b1) but 2.3.2.ds1-22sarge6 is to be installed
locales: Depends: glibc-2.6-1
x-window-system: Depends: xorg but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
farslayer, yes i have been running apt-get update.
nx5000, yes it is sarge.
But i think its a little past that now. No matter what i try and do ie the apt-get.
I ALWAYS get that Unmet dependencies.
None of that above worked junior hacker, i was gettin this.
Code:
debian:~# apt-get install x-window-system
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
binutils: Depends: libc6 (>= 2.6-1) but 2.3.2.ds1-22sarge6 is to be installed
libc6-dev: Depends: libc6 (= 2.6.1-1+b1) but 2.3.2.ds1-22sarge6 is to be installed
locales: Depends: glibc-2.6-1
x-window-system: Depends: xorg but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
farslayer, yes i have been running apt-get update.
nx5000, yes it is sarge.
But i think its a little past that now. No matter what i try and do ie the apt-get.
I ALWAYS get that Unmet dependencies.
Of course you get them your trying to install a package that is not intended for your system by having a mixed branch setup in your sources.list. If you want to use Xorg then comment out the line(s) for Sarge in your sources.list then update and apt-get dist-upgrade to move to the new distribution now try to install Xorg on the system it was intended for.
Edit: And if I remember correctly you should purge the xserver-xfree86 package(s) before attempting the dist-upgrade as it will cause problems then install Xorg once the upgrade is completed.
Thanks tux. Well, i updated the source.list i done what you said. I am still getting the same errors.
Code:
debian:~# apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
binutils: Depends: libc6 (>= 2.6-1) but 2.3.2.ds1-22sarge6 is installed
libc6-dev: Depends: libc6 (= 2.6.1-2) but 2.3.2.ds1-22sarge6 is installed
locales: Depends: glibc-2.6-1
E: Unmet dependencies. Try using -f.
When i run apt-get -f install it does more, like it is downloading the software but, i get to the part when it says:
Code:
This script detected the following installed services which must be
stopped before the upgrade:
gdm
If you want to interrupt the upgrade now and continue later, please
answer No to the question below.
Do you want to upgrade glibc now? [Y/n] y
I say yes and it then says:
Code:
The installation of a 2.6 kernel _could_ ask you to install a new libc
first, this is NOT a bug, and should *NOT* be reported. In that case,
please add etch sources to your /etc/apt/sources.list and run:
apt-get install -t etch linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.6.1-2_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.6.1-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thanks tux. Well, i updated the source.list i done what you said. I am still getting the same errors.
Code:
debian:~# apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
binutils: Depends: libc6 (>= 2.6-1) but 2.3.2.ds1-22sarge6 is installed
libc6-dev: Depends: libc6 (= 2.6.1-2) but 2.3.2.ds1-22sarge6 is installed
locales: Depends: glibc-2.6-1
E: Unmet dependencies. Try using -f.
When i run apt-get -f install it does more, like it is downloading the software but, i get to the part when it says:
Code:
This script detected the following installed services which must be
stopped before the upgrade:
gdm
If you want to interrupt the upgrade now and continue later, please
answer No to the question below.
Do you want to upgrade glibc now? [Y/n] y
I say yes and it then says:
Code:
The installation of a 2.6 kernel _could_ ask you to install a new libc
first, this is NOT a bug, and should *NOT* be reported. In that case,
please add etch sources to your /etc/apt/sources.list and run:
apt-get install -t etch linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.6.1-2_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.6.1-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thank you all.
Usually that error (1) is an overwrite problem was that all the message? Try dpkg -i --force-overwrite /var/cache/apt/archives/libc6_2.6.1-2_i386.deb to fix the overwrite then install/reboot into the linux-image-2.6.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.