help with apt-get: dependency error (Depends: but is not going to be installed)
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.
help with apt-get: dependency error (Depends: but is not going to be installed)
Hello folks,
I have an ancient computer on which has been happily running Debian 3.0 (Woody). Yes, I know it is extremely old, but it works great on my old hardware, does what I need it to and I am of the mindset "if it ain't broke..."
The main purpose of this computer is to serve a simple Intranet site for our company. It uses PHP, apache and mysql.
So yesterday I had the bright idea to install phpmyadmin so I could backup my database from my desk (remotely). Sadly, my normally happy computer has been fighting me on this one.
I've updated my sources.list to point to Debian archives, and verified that the computer can read them.
So here's the problem.
Code:
INTRANET:/etc/apt# apt-get install phpmyadmin
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
Sorry, but the following packages have unmet dependencies:
phpmyadmin: Depends: ucf (>= 0.8) but it is not going to be installed
smbfs: Depends: samba-common (= 3.0.14a-3) but 2.2.3a-14.1 is to be installed
Depends: libc6 (>= 2.3.2.ds1-21) but 2.2.5-11.1 is to be installed
Depends: libcomerr2 (>= 1.33-3)
Depends: libkrb53 (>= 1.3.2) but it is not going to be installed
Depends: libldap2 (>= 2.1.17-1) but 2.0.23-6 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Do you have a mixed sources.list? It appears that you're trying to install one package from a newer repository but that it doesn't have access to a repository with the newer dependencies.
Note, that installing something from a modern repository is likely to dump you straight into dependency hell since Woody is so old...
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
The Woody repository does exist in the archives. So, add the following to your sources.list:
Code:
deb http://archive.debian.org/debian woody main contrib nonfree
I strongly suggest eliminating repositories of different versions from your sources.list -- as others have already said, it's a recipe for a broken system (sometimes with a preferences file, you can manage some mixing, but, usually it's best just to avoid mixing versions).
The archives does have the phpmyadmin package, so it may just exist in Woody (or it may not, given that the archives is also for Sarge and others). Try it out and see.
Yes, it did exist for Woody, as far as my googling can tell. However, I do not know how to tell if it exists in the repositories I'm using.
Here is my sources.list; I modified it today as the old one was the original from when I installed the distro:
Code:
deb http://archive.debian.org/debian/ woody main contrib non-free
deb-src http://archive.debian.org/debian/ woody main contrib non-free
deb http://security.debian.org/ oldstable/updates main contrib non-free
This sources.list appears to be working (when I did apt-get update, it was happy).
I wouldn't use oldstable on the security.debian.org line. oldstable is now referencing Etch (4.0) so that may cause you some grief. In fact, I'm pretty sure that you don't even need the security line since no further security updates are done to anything before Etch.
Okay, I removed the last line and did apt-get update.
I'm getting a same, but slightly different error this time.
Here is my result.
Code:
INTRANET:/etc/apt# apt-get update
Hit http://archive.debian.org woody/main Packages
Hit http://archive.debian.org woody/main Release
Hit http://archive.debian.org woody/contrib Packages
Hit http://archive.debian.org woody/contrib Release
Hit http://archive.debian.org woody/non-free Packages
Hit http://archive.debian.org woody/non-free Release
Hit http://archive.debian.org woody/main Sources
Hit http://archive.debian.org woody/main Release
Hit http://archive.debian.org woody/contrib Sources
Hit http://archive.debian.org woody/contrib Release
Hit http://archive.debian.org woody/non-free Sources
Hit http://archive.debian.org woody/non-free Release
Reading Package Lists... Done
Building Dependency Tree... Done
INTRANET:/etc/apt# apt-get install phpmyadmin
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
Sorry, but the following packages have unmet dependencies:
phpmyadmin: Depends: wwwconfig-common (>= 0.0.7) but it is not going to be installed
smbfs: Depends: samba-common (= 3.0.14a-3) but 2.2.3a-14.1 is to be installed
Depends: libc6 (>= 2.3.2.ds1-21) but 2.2.5-11.1 is to be installed
Depends: libcomerr2 (>= 1.33-3)
Depends: libkrb53 (>= 1.3.2) but it is not going to be installed
Depends: libldap2 (>= 2.1.17-1) but 2.0.23-6 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Should I try and install the dependencies (smbfs, wwwconfig-common) on their own and see what happens? I don't want to break anything...
On a related note, how can i tell if I already have one of those installed and what version? I typed dpkg -s smbfs and it was listed, but I don't know if that means it is installed or what.
I did "dpkg -s smbfs" and it showed version 3.0.14a-3 was "installed ok unpacked" so, partially on my system
but the versions for its dependencies were the versions listed in the error (2.2.3a-14.1).
doing "apt-cache show smbfs" showed version 2.2.3a-15 was in the repository (I think that's how it works?)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.