LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-07-2014, 06:01 PM   #1
Paolopd
Member
 
Registered: Mar 2010
Distribution: Debian Jessie/Xfce4
Posts: 39

Rep: Reputation: 0
Aptitude, safe-upgrade is too slow.


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?

Thank
 
Old 11-08-2014, 02:45 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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).
 
Old 11-08-2014, 03:17 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
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
 
Old 11-08-2014, 04:02 AM   #4
Paolopd
Member
 
Registered: Mar 2010
Distribution: Debian Jessie/Xfce4
Posts: 39

Original Poster
Rep: Reputation: 0
@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

Code:
APT
{
	Default-Release "testing"; 
	Cache-Limit 24000000;
}
Acquire::http::Proxy "http://indirizzo_proxy:3142/";
Aptitude
{
	Autoclean-After-Update "true";
	Auto-Fix-Broken "true";
        CmdLine::Ignore-Trust-Violations "true";
	Purge-Unused "true";
}
Thanks for your attention
 
Old 11-08-2014, 12:20 PM   #5
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
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
 
Old 11-08-2014, 06:48 PM   #6
Paolopd
Member
 
Registered: Mar 2010
Distribution: Debian Jessie/Xfce4
Posts: 39

Original Poster
Rep: Reputation: 0
This is my sources.list:

Code:
# 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!
 
Old 11-09-2014, 01:23 AM   #7
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Your problem is in the Multimedia section. You have a faulty entry. You have this:
Code:
deb http://www.deb-multimedia.org/ testing main non-free
and you should have this:
Code:
deb http://deb-multimedia.org/ testing main non-free
Make the correction and see if that doesn't speed things up for you.
jdk
 
Old 11-09-2014, 06:32 PM   #8
Paolopd
Member
 
Registered: Mar 2010
Distribution: Debian Jessie/Xfce4
Posts: 39

Original Poster
Rep: Reputation: 0
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.

Last edited by Paolopd; 11-09-2014 at 07:16 PM.
 
Old 11-09-2014, 09:07 PM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
If you use apt-get upgrade it will reslove dependencies faster especially since you're using testing.
Quote:
apt-get update
apt-get upgrade
apt-get dist-upgrade
 
Old 11-10-2014, 04:48 AM   #10
Paolopd
Member
 
Registered: Mar 2010
Distribution: Debian Jessie/Xfce4
Posts: 39

Original Poster
Rep: Reputation: 0
@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.
 
Old 11-10-2014, 04:58 AM   #11
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636Reputation: 636
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.

Last edited by k3lt01; 11-10-2014 at 05:00 AM.
 
Old 11-10-2014, 05:18 AM   #12
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,385

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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.
 
Old 11-10-2014, 06:39 AM   #13
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
When I used aptitude for upgrade it went into endless loop.
 
Old 11-11-2014, 04:33 AM   #14
Paolopd
Member
 
Registered: Mar 2010
Distribution: Debian Jessie/Xfce4
Posts: 39

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by k3lt01 View Post
... This would also happen with apt-get.
In mine situation when I use "apt-get upgrade" after 2 or 3 weeks the system doesn't take so long time like aptitude.
 
Old 11-11-2014, 04:36 AM   #15
Paolopd
Member
 
Registered: Mar 2010
Distribution: Debian Jessie/Xfce4
Posts: 39

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by descendant_command View Post
...
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.
Can you explain please? Do you mean that I have to change in the config file of aptitude?

PS. Sorry, for the question in my reply, I didn't have seen well the meaning. In fact the <Auto-Fix-Broken "true"> is set to "true".

Last edited by Paolopd; 11-12-2014 at 05:02 AM.
 
  


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
[SOLVED] how does aptitude safe-upgrade work? radiodee1 Debian 3 06-16-2012 07:55 AM
[SOLVED] apt-pinning and 'aptitude safe-upgrade' Knightron Debian 3 11-17-2011 11:58 PM
Installing backports with aptitude safe-upgrade? stardustdk Debian 2 10-18-2010 05:27 PM
[SOLVED] aptitude and full/safe upgrade -- testing radiodee1 Debian 5 10-31-2009 07:10 PM
Problem with aptitude safe-upgrade mikieboy Debian 4 01-10-2008 06:11 PM


All times are GMT -5. The time now is 11:12 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