Debian Installation :: Aptitude Update And Aptitude Install Aptitude?
Jul 11, 2010
I am trying to upgrade an amd64 lenny system to squeeze.I've got a 2.6.32 kernel running, done aptitude update and aptitude install aptitude.When I try "aptitude safe-upgrade", it sits forever resolving dependencies.it seems to search with the resolver counting up more and more open/conflict/ whatever.I stopped it once it got over 100,000)Is it possible to get aptitude to do a safe-upgrade, perhaps using a command line option?
Using Debian Jessie 32 bit and Wheezy 32 bit on 2 separate computers.
For the pass few days, received the following message on both computers when doing a aptitude update or apt-get update results in the following error message:
W: Failed to fetch http://security.debian.org/dists/jes...ource/Sources: Hash Sum mismatch W: Failed to fetch http://security.debian.org/dists/jes...i386/Packages: Hash Sum mismatch W: Failed to fetch http://security.debian.org/dists/jes...ranslation-en: Hash Sum mismatch
I'm developing with puppet, and I need to do an aptitude update from a specific file, here is my configuration: The file sources.list in /etc/apt/ is deleted. I've created 3 files in /etc/apt/sources.list.d each one with their repos:
00-debian_sources.list deb http://ftp.fr.debian.org/debian/ lenny main contrib non-free deb-src http://ftp.fr.debian.org/debian/ lenny main contrib non-free
[code]....
All the repos are updated/refreshed , and I only want to refresh/update the specific repos insie of the file 01-debian_security_updates.list. On the other hand if I put some repos in the sources.list and delete the 3 files and I create an external file for example in /tmp/temprepo and I do the command aptitude update -o dir::etc::sourcelist=/tmp/temprepo it works fine.give some workaround to update and then upgrade packages from the files specified in my config.
Well it didn't go smoothly for me. After downloading over 1,6Gb (!) of that new Debian version and restarting I was 'greeted' by a dreaded CLI instead of gnome. To make matters worse I got "command aptitude not found". 'apt-get' still worked. Anyway, if you're gonna update check dependencies first. It seems I lost gnome due to gstreamer0.10-gnomevfs. So first uninstall that package if you got it.
I'm fairly new to debian, but not to Linux overall. And it seems that I can not install anything using the "apt-get" or "aptitude" commands. Here is what it says when I try to install synaptic:
apt-get install synaptic Reading package lists... Done Building dependency tree Reading state information... Done Package synaptic is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source. E: Package synaptic has no installation candidate
I have a very strange problem; when trying to apt-get update or aptitude update I get time out errors. At first it was resolving ipv6 adresses:
Cannot initiate the connection to ftp.litnet.lt:80 (2001:778::87). - connect (101: Network is unreachable) [IP: 2001:778::87 80] Err [URL] Cannot initiate the connection to security.debian.org:80 (2001:a78:5:1:216:35ff:fe7f:6ceb). - connect (101: Network is unreachable) [IP: 2001:a78:5:1:216:35ff:fe7f:6ceb 80] As my host does not have normal ipv6 support, i just tried to disable ipv6: echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/disableipv6.conf
There were some grave bugs being showed by listbugs for apt dpkg etc
So ran aptitude hold for these buggy packages and upgraded others
Now unable to 'unhold' dpkg. ie
synaptic shows it as 1.17.13 both installed and latest and no upgradation possible
[URL] .... shows it as 1.17.23
Code: Select all# aptitude dist-upgrade
The following NEW packages will be installed: dpkg:i386{ab} libbz2-1.0:i386{a} libjpeg62-turbo:i386{a} libsystemd0:i386{a}
some other stuff
Code: Select allThe following packages have unmet dependencies: dpkg : Conflicts: dpkg:i386 but 1.17.23 is to be installed. dpkg:i386 : Conflicts: dpkg but 1.17.13 is installed.
So I can only conclude that aptitude sees the need to upgrade from .13 to .23 but for some reason it cant 'get out' of the installed dpkg:amd64
get a GUI working after installing Debian. Now, I have another set of problems so I decided to create a new thread. the first thing going wrong is that when I type aptitude update I get the following output:
[Code]....
I want to download the driver for mi wireless, get openoffice and a bunch of other things, but with this not working, I'm guessing there's not much I can do now... I have the driver of the wireless, which I downloaded before the installation of Debian, and that I now copied to my new Debian desktop, but I cannot open it... it is a tar.gz file. I'm currently connected through wired connection by the way.
I see that the backports now is officiel. My question is rather simpel: Is it possible to upgrade with (and how to) the backported packages without to much work? Is is needed to install all backported packages individually? I want to upgrade to any backported package with the command:
Synaptic does not run. When I start it from Menu/system/administration/synaptic package manager , it asks for root password, then crashes. Nor does aptitude from the root terminal.localhost:/home/user# aptitude
I am running squeeze. I ran aptitude update and then safe-upgrade. The system detects 104 conflicts and then installs nothing, with no other messages. What can the problem be?
In Ubuntu 10.10 am trying to install Aptitude and have been through installing and un-installing but keep getting the same msg Failed to execute child process "su-to-root" (No such file or directory) how to resolve this issue.
I want to install aptitude using apt-get, but some problems happen like this: The following packages have unmet dependencies: aptitude : Depends: libapt-pkg-libc6.10-6-4.8 Depends: libept0 (>= 0.5.30) but it is not going to be installed E: Broken packages (before do this, I have used command apt-get update and apt-get upgrade)
Today I ran aptitude update && aptitude safe-upgrade Like I regularly do, and I see these two packages need to be upgraded: login passwd
Since these packages seem kinda security-sensitive I would like to know exactly why I would need to upgrade them. I checked Debian's security list but couldn't find anything relevant, and the links to the changelog for both packages are broken: The requested URL /changelogs/pool/main/s/shadow/shadow_4.1.4.2+svn3283-2+squeeze1/changelog was not found on this server. Where can I see what is changed in these packages so I can safely upgrade?
trying to get wine working was reading the tutorial-
"Complete Guide to Using Wine from the Command Line (Ubuntu)" first thing it said to do for ubuntu user's was this-
"Before I continue with my rant about gaming on Linux I would like to point out right now that the very first thing you should do when you install your ubuntu set up is to run the following:
From what I understand aptitude and apt-get are both valid package management tools and it should not matter which one you use (of course the user interface is different, but the basic functionality is the same). I found something which makes me believe there are differences: I ran aptitude install gnome-themes-more and it did nothing because the package was already installed. Then I ran apt-get install gnome-themes-more just to see the difference, and it also did not install anything, but it marked the package as manually installed.
The I ran again apt-get install gnome-themes-more and this time the package was not marked as manually install (obviously because it's already marked). This makes me believe that aptitude did not mark my package as manually installed (I would have pasted the command output as well, but I don't have it anymore). So, is the core functionality of those tools the same or not?
I used until now apt-get and wonder if I should have used aptitude. I have found some wikis which recommend the usage of aptitude but I could not find out if this reccomendation is based only on the UI improvements or are there also improvements in the core functionality. I'd like some hints from more seasoned debianers about which one to use, or whether it matters. I'm maily using command line, so user interface is not an issue,
How to find packages with aptitude. If I use the shell to type "aptitude search nethack" then I get a list of several nethack versions from which to choose. If I use the aptitude GUI and type Ctrl-T and then arrow over to the search option and type in "nethack" and hit Enter, the only option that I see is nethack-spoilers. Why do I not see all of the other nethack options?
Just today saw that for some reason aptitude seems broken. Dunno the reason. I don't know if its do with aptitude or some other update which introduced the issue. The issue is simple.
Before I could do something like $sudo aptitude purge linux-image [TAB]
Putting down the tab it would autocomplete or/and give other options if there were multiple options (it would do some kinda grep)
Now after the update of aptitude few days ago and other things I get something like this : sudo aptitude purge linux-image [TAB]grep-status: /var/lib/dpkg/status:14651: expected a colon
Normally I use apt-get for to upgrade my Debian system. Today i tried to compare apt-get and aptitude with respect to system upgrade. Surprisingly I got different results.
Code: Select allsudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done
The following packages have been kept back:
openjdk-7-jre openjdk-7-jre-headless
The following packages will be upgraded: libtiff5 1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. Need to get 213 kB of archives. After this operation, 44.0 kB disk space will be freed.
The following NEW packages will be installed: libsctp1{a} lksctp-tools{a}
The following packages will be upgraded: libtiff5 openjdk-7-jre openjdk-7-jre-headless 3 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 45.9 MB/45.9 MB of archives. After unpacking 9,130 kB will be used.
What is behind these results? Which method is safer?
I've been trying to use aptitude for package management, but nothing happens in response to my commands, even as root.
Let's say for example I want to purge popcon. According to the helpfile, I should start aptitude, become root (or vice-versa), select the package in the list and press '_' (underscore), and then it will be marked with something in the left column and a different color in the list. Then later, another command will actually do the purge.
But nothing happens. It doesn't get marked or change color or anything, and 'g' just gets the message 'No packages are scheduled to be installed, removed, or upgraded.'
To:Squeeze penguins who chokes when aptitude (Segmentation fault) Possible reasonThere are several apt packages(.deb). As of Sun Apr 25 09:05:24 UTC 2010. When something screws up, apt-get and aptitude choke. SolutionReinstall one of them by "dpkg -i" At least, I was able to resuscitate my penguin.