Linux - NewbieThis 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
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.
Hi there,
I am using Debian (3.13-1-amd64) 7 Jessie/sid
I have one problem with "aptitude" when I am trying to use the command "aptitude safe-upgrade". The system take so much time that one night is not enough to complete the upgrade. Instead when I try to upgrade with "apt-get"
the system runs very fast.
I have tried to uninstall aptitude and reinstall, but there is no way for the time it takes to upgrade.
Is there any solutions, maybe with some dependencies, to solve this matter?
apt-get is now the favored app for upgrading aptitude takes too long for dependency resolution.
I don't think that you can remove it, I believe aptitude & apt-get are part of the same package(don't quote me though).
I just finished updating Jessie. I do this every day at 8:00 (GMT). Running this sequence:
Code:
sudo aptitude update
sudo aptitude safe-upgrade
took about 3 minutes, start-to-finish. Given that we are either in or close to the freezing point the upgrades averaging over 100 packages the last 2-3 days have dropped to a trickle. In any event you need to tell us two things:
1. How often do you update your sytem?
2. How many packages were being installed/upgraded?
Quote:
Is there any solutions, maybe with some dependencies, to solve this matter?
If you are getting no error messages then it probably has nothing to do with dependencies. Aptitude is designed to handle dependencies and will install any that are needed as part of the safe-upgrade (or dist-upgrade, for that matter). I might be useful to post any relevant messages you get on your terminal during the upgrading process. Perhaps you just need to change the mirrors of your sources.list file.
jdk
@jdkaye
Thank for your answer. Well, I update my system one time a week or maybe 2 week.
The fact is that after this trouble with aptitude I have chosen to upgrade my system using apt-get. But I am not so satisfied because I have notice that aptitude is much more accurate to solve the dependencies than apt-get. Is for tha reason that I wish resolve the matter with aptitude. I really don't know why it takes so long time, 'cause time passed it was quite fast.
For you question if I have had any error messages I can just say that after some hours I decided to stop it...
I have found these command lines for aptitude to solve the matter, but I am not sure if they are useful for my problem
Since we are running the same release of Debian and I am not experiencing the problem you have I'd suggest that you post the content of your sources.list file and also the contents of your sources.list.d folder. Perhaps the problem will be found there.
jdk
# deb http://ftp.it.debian.org/debian/ testing main
# deb-src http://ftp.it.debian.org/debian/ testing main
# BASE REPOSITORY
deb http://http.us.debian.org/debian/ testing main contrib non-free
deb-src http://http.us.debian.org/debian/ testing main contrib non-free
# BASE SECURITY REPOSITORY
deb http://security.debian.org/ testing/updates main
# MULTIMEDIA
deb http://www.deb-multimedia.org testing main non-free
deb-src http://deb-multimedia.org testing main
# Debian Testing
# deb http://ftp.us.debian.org/debian testing main contrib non-free
but in my "sources.list.d folder" there is nothing!
Thank you, I'll try to change, but I don't understand what does it mean changing it on dependencies with aptitude.
PS.
Now I am updating but while the system is searching for dependencies it is working very very slow and take a lot resources (about 30/40% of cpu). That's very strange!
I have stoped the process, because the system became very slow, impossible to do anything.
Code:
paol@debian:~$ sudo aptitude safe-upgrade
Risouzione delle dipendenze...
aperti: 125087; chiusi: 262142; rimandati: 90; in conflitto: 211
As you see there are many dependencies in conflict, but I don't know how to solve this problem. My last chance is to remove aptitude, but I would try another chance if there is one.
@Eddy
Thank you, but the question was that aptitude is much more effective to solve dependencies and is for that reason that I wish to understand why it take so long time for. Time before with the same command (aptitude safe-upgrade) I have never had this problem and I don't know what is happen that can explain this slowness.
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Your problem possibly stems from the update regime you use. If you update (notice I said update not upgrade) once every week or two you are downloading alot of diff files (up to 4 a day for each file aptitude update would normally download which spread over 2 weeks could add up to 56 extra files for every single file normally downloaded). If you are running testing or Sid updating once every week or two really does complicate things that don't need to be complicated. This would also happen with apt-get.
Your system would seem to be in a very shitty state, probably because testing has been moving very fast coming up to the freeze.
If you have not kept up, or have been holding some packages, or have third party stuff this could make for some very convoluted dependency chains that could take a lot of sorting out.
Aptitude tries a lot harder than apt-get so that is why apt-get was suggested to help you out.
Alternatively, the aptitude interface could help you pinpoint the issues and fix it by allowing you to selectively upgrade groups of packages that will, and (maybe temporarily) remove the problem packages.
I would comment out the <Auto-Fix-Broken "true"> or it will spin it's wheels for a long time as soon as you start it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.