Announcement

Collapse
No announcement yet.

[resolved] Stopping apt/aptitude from removing most of my system

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [resolved] Stopping apt/aptitude from removing most of my system

    This is a problem that has been hanging for a while. Every time I run apt-get (or attempt to run aptitude), it threatens to autoremove what comes down to most of the software on my system, saying it isn't needed any more. That's not true; although a lot of it hasn't been used for a while, I still want it on the system. Is there a way to fix or reset whatever is trying to remove all this stuff? I can't use aptitude at all because of this, and the messages from apt-get are just irritating. I don't know where apt is getting this info, but it's incorrect and would be nice to fix it.

    Note: I did see a message on the ubuntu forum somewhere about not using autoremove. Maybe this is a bug, but maybe not.
    We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

    #2
    Re: Stopping apt/aptitude from removing most of my system

    Actually I think if you will investigate the named packages, you will find out that they are so-called "meta" packages. Autoremove will only strip out the "wrapper", not the included packages.

    I don't remember hearing any cautions about using apt-get autoremove on *buntu, but of course it is a serious no-no for sidux.

    Comment


      #3
      Re: Stopping apt/aptitude from removing most of my system

      Actually I think if you will investigate the named packages, you will find out that they are so-called "meta" packages.
      Nope. They are real packages. Some are junk, yes, but many are not.

      Code:
      greenman@Wolfenstein:~$ sudo apt-get --simulate autoremove
      [sudo] password for greenman: 
      Reading package lists... Done
      Building dependency tree    
      Reading state information... Done
      The following packages will be REMOVED:
       abiword-help aisleriot amarok-common amarok-utils anjuta-common aptdaemon autogen binutils-static
       brasero bridge-utils bsh bsh-gcj bzr bzrtools cfortran check compiz-fusion-plugins-extra
       debconf-utils devhelp-common dpatch enfuse epiphany-browser-data eternal-damnation
       eternity-screensaver exuberant-ctags fauhdlc festlex-cmu festlex-poslex firefox-3.5-branding
       glchess glines glom-doc gnect gnibbles gnobots2 gnome-app-install gnome-blackjack gnome-core
       gnome-games-common gnome-js-common gnome-mahjongg gnome-mount gnome-pilot gnome-pilot-conduits
       gnome-sudoku gnome-system-tools gnomine gnotravex gnotski gobject-introspection
       gstreamer0.10-gnomevfs gtali gvfs-bin hspell hugin-data hugin-tools iagno indi inigo irb1.8
       kdeartwork-misc kode konqueror-plugin-adblock konqueror-plugin-akregator
       konqueror-plugin-autorefresh konqueror-plugin-babelfish konqueror-plugin-crashes
       konqueror-plugin-dirfilter konqueror-plugin-domtreeviewer konqueror-plugin-fsview
       konqueror-plugin-imagerotation konqueror-plugin-khtmlsettings konqueror-plugin-kimgallery
       konqueror-plugin-minitools konqueror-plugin-rellinks konqueror-plugin-uachanger
       konqueror-plugin-validators konqueror-plugin-webarchiver ladcca2 lazarus-doc ldm-server
       libacl1-dev libalgorithm-diff-perl libamazon-ruby libamd2.2.0 libapm1 libaqhbci13 libaqofxconnect4
       libaqofxconnect5 libart-2.0-dev libart2-ruby libass1 libatk1-ruby libattr1-dev libaudclient1
       libaudid3tag1 libaudio-dev libaudiofile-dev libavahi-client-dev libavahi-common-dev
       libavahi-glib-dev libavcodec-unstripped-52 libavutil-unstripped-49 libax25 libbakery-2.6-1
       libbakery-2.6-common libbeagle1 libbeecrypt6 libbibutils0 libbinio1ldbl libblas-dev libbonobo2-dev
       libbonoboui2-dev libboost-date-time1.34.1 libboost-filesystem1.37.0 libboost-iostreams1.37.0
       libboost-python1.35.0 libboost-regex1.37.0 libboost-signals1.34.1 libboost-system1.37.0
       libboost-thread1.34.1 libbulletml0d1 libbz2-dev libc-client2007b libcal3d12 libcamd2.2.0
       libccolamd2.7.1 libcegui-mk2-dev libchipcard-ctapi0 libchipcard-data
       libchipcard-libgwenhywfar47-plugins libchipcard-tools libchipcardc2 libcholmod1.7.1 libclalsadrv1
       libcln5 libclthreads2 libclutter-gtk-0.10-0 libclxclient3 libcommoncpp2-1.6-0 libconfig-tiny-perl
       libcups2-dev libcupsys2 libcurl4-openssl-dev libcv1 libcvaux1 libcxsparse2.2.3 libdbd-sqlite3-perl
       libdbus-1-dev libdebconfclient0 libdevil-dev libdevkit-gobject0 libdmx1 libdvbpsi4 libdvdread3
       libempathy-common libempathy30 libenchant-dev libepc-1.0-1 libesd0-dev libevent1
       libfile-slurp-perl libfox1.4 libfreeimage-dev libgail-dev libgail-gnome-module libgconf2-dev
       libgcrypt11-dev libgda-4.0-4 libgda-4.0-common libgda3-postgres libgdamm3.0-10 libgdata5
       libgdiplus libgdk-pixbuf2-ruby libgettext-ruby1.8 libgif-dev libglade2-dev libgladeui-1-9 libglc0
       libglitz-glx1 libglitz1 libglom0 libglpk0 libglpng libgmyth0 libgnome-keyring-dev libgnome-speech7
       libgnome2-dev libgnomecanvas2-dev libgnomecanvas2-ruby libgnomekbd3 libgnomekbdui3
       libgnomescanui-common libgnomeui-dev libgnomevfs2-dev libgnomevfs2-ruby libgnomevfs2-ruby1.8
       libgnutls-dev libgoffice-0-6 libgoffice-0-6-common libgoocanvasmm-0.1-4 libgpac0.4.4
       libgpg-error-dev libgraphicsmagick++1 libgsf-gnome-1-114 libgssdp-1.0-1 libgtk-mozembed-ruby
       libgtk-mozembed-ruby1.8 libgtkglext1-ruby libgtkglext1-ruby1.8 libgtkhtml2-0 libgtkhtml3.8-15
       libgtksourceviewmm-2.0-2 libguichan-0.8.1-1 libguichan-allegro-0.8.1-1 libgupnp-1.0-2
       libhdf5-serial-1.6.6-0 libhdf5-serial-1.8.3 libhesiod0 libhighgui1 libhpricot-ruby
       libhpricot-ruby1.8 libhsqldb-java-gcj libhtmlentities-ruby libhtmlentities-ruby1.8 libidl-dev
       libidn11-dev libilmbase-dev libimage-size-ruby1.8 libindicate-gtk1 libindicate1 libjasper-dev
       libjpeg7 libkadm55 libkadm5clnt6 libkdewebkit1 libkeyutils-dev libkorundum4-ruby1.8 libkpathsea4
       libkrb5-dev liblapack-dev liblastfm0 liblcms1-dev libldap2-dev liblog4j1.2-java-gcj liblua50-dev
       liblualib50-dev liblzma0 libmcs1 libmd5-perl libming0 libming1 libmng-dev libmodule-build-perl
       libmoon libmorph libmozjs0d libncurses5-dev libnet-dbus-perl libnokogiri-ruby1.8 libntfs-3g54
       libode0debian1 libode1sp liboggz1 liboobs-1-4 libopal3.6.1 libopenexr-dev libopengl-ruby
       libopengl-ruby1.8 libopenssl-ruby1.8 libopts25 libopts25-dev liborbit2-dev libossp-uuid15
       libpango1-ruby libpano13-0 libpano13-1 libpano13-bin libpcre3-dev libpcrecpp0 libphp-snoopy
       libpkcs11-helper1 libpocofoundation6 libpoconet6 libpolkit-gnome0 libpolkit-gtk-1-0 libpolkit-qt0
       libpoppler3 libpopt-dev libportaudio0 libpq-dev libprotobuf3 libpt2.6.1 libqbanking5 libqbanking8
       libqhull5 libqscintilla2-3 libqscintilla7 libqtscriptbindings1 libreadline-ruby1.8
       libreadline5-dev libresid-builder0c2a librevolution-ruby librevolution-ruby1.8 librsvg2-ruby
       librsvg2-ruby1.8 libsbigudrv0 libscrollkeeper0 libsdl-console libselinux1-dev libsepol1-dev
       libservlet2.3-java libservlet2.4-java libsidplay2 libsmi2-common libsmokekde4-2 libsmokeqt4-2
       libsoup2.2-8 libsqlite0-dev libsqueeze-0.2-0 libstreamanalyzer-dev libstreams-dev
       libsuitesparse-3.2.0 libtag-extras1 libtasn1-3-dev libtcd0 libtelepathy-farsight0
       libterm-readline-gnu-perl libtext-diff-perl libtie-ixhash-perl libtiff4-dev libtiffxx0c2
       libtrackerclient0 libtre4 libtse3-0.3.1c2a libumfpack5.4.0 libvamp-hostsdk2 libvamp-sdk1
       libvlccore0 libvte-ruby libvte-ruby1.8 libwaili1c2 libwebkitkde1 libwww-mechanize-ruby
       libwww-mechanize-ruby1.8 libxerces-c2-dev libxml-twig-perl libxml-xpathengine-perl libxmu-dev
       libxmu-headers libxslt1-dev libxtst-dev libyaml-0-1 libyaml-perl libzephyr3 libzipios++0c2a
       libzoom-ruby libzoom-ruby1.8 linux-tools localechooser-data lsb lsb-core lsb-cxx lsb-desktop
       lsb-graphics lsb-printing ltsp-server ltspfs lua50 mesa-common-dev metamail nbd-server
       ncurses-term network-manager-openvpn network-manager-openvpn-gnome network-manager-vpnc
       network-manager-vpnc-gnome nvidia-settings openclipart-png openclipart-svg openvpn
       openvpn-blacklist orbit2 patchutils perl-doc php-file php5-curl php5-suhosin php5-xmlrpc
       policykit-gnome pxlib1 python-4suite-doc python-4suite-xml python-aptdaemon python-aptdaemon-gtk
       python-beaker python-celementtree python-cerealizer python-dsv python-editobj python-elementtree
       python-gamin python-gda python-gdata python-gpod python-gtkglext1 python-gtkhtml2 python-ldap
       python-nose python-numeric python-paramiko python-plasma python-pyogg python-pyopenssl
       python-rabbyt python-setuptools python-sip4-dev python-soya python-sqlalchemy python-sqlite
       python-tofu python2.4 rdate resolvconf rhino same-gnome seahorse-plugins sharutils slirp smarty
       software-center stk streamripper superkaramba system-tools-backends telepathy-mission-control-5
       texlive-base-bin-doc texlive-generic-extra texlive-humanities texlive-humanities-doc
       texlive-latex3 tftpd-hpa totem-gstreamer ttf-tamil-fonts ttf-uralic ubuntu-gdm-themes user-setup
       vpnc watershed webkitkde-data wine-gecko x11proto-record-dev xfce4-screenshooter-plugin xfprint4
       xfs xulrunner-1.9 xulrunner-1.9.1 xulrunner-1.9.1-gnome-support
      0 upgraded, 0 newly installed, 459 to remove and 3 not upgraded.
      We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

      Comment


        #4
        Re: Stopping apt/aptitude from removing most of my system

        Curiosity would get the better of me. I'd back up all my "keeper" files and then let apt do its thing.

        IF, when it is done, I still have an Internet connection I'd do an
        sudo apt-get install kubuntu-desktop

        If that doesn't work there is always the Kubuntu Lucid Lynx LiveCD (which I'd be sure that I had a working copy of)
        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
        – John F. Kennedy, February 26, 1962.

        Comment


          #5
          Re: Stopping apt/aptitude from removing most of my system

          The notion that apt-get autoremove would rip out needed packages is a bit shocking, although I cannot argue with what the output is showing. What I can't see is whether or not the listed packages are the latest version, or a prior version that could be removed with no damage.

          On my Kubuntu 10.04 system, I ran apt-get autoremove as recently as this past weekend with no damage whatsoever ...

          Comment


            #6
            Re: Stopping apt/aptitude from removing most of my system

            When I first started using Jaunty, there were a couple times when, while trying to uninstall a package, it was told that several other packages had to be removed as well. Not as many is shown in the OP, but more than I was comfortable with, and certainly not packages that I wanted to remove, i.e., my lib32 compatibility libraries, stellarium and a couple others.
            "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
            – John F. Kennedy, February 26, 1962.

            Comment


              #7
              Re: Stopping apt/aptitude from removing most of my system

              What I can't see is whether or not the listed packages are the latest version
              I did some spot checking; yes, they are the current installed versions.

              I'd back up all my "keeper" files and then let apt do its thing.
              Copied the system to a test partition and let it fly. It did in fact do what it promised. So I erased the test partition -- I'm not a fan of reinstalling and reconfiguring an entire system.

              there is always the Kubuntu Lucid Lynx LiveCD
              Which of course will not boot on my system, but that's another treat for another day...

              When I first started using Jaunty, there were a couple times when, while trying to uninstall a package, it was told that several other packages had to be removed as well.
              Much as I dislike gui package managers, one way around that (sometimes) is to use synaptic, and unmark the ones you don't want to delete. Which may actually be why I am having this problem, as apt may really think they are not needed because of other things that have been removed. Pretty strange to want to remove some of those things, though, as they're not all trivial.


              We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

              Comment


                #8
                Re: [resolved] Stopping apt/aptitude from removing most of my system

                I think I found out what happened. Actually, there are several problems, among them:

                Some packages have changed dependencies, and evidently the apt system did not recognize that during updates, leaving zombie packages behind.

                Some updates removed core packages (which I forgot about - amarok for one), and now the system is trying to remove its dependencies. I'm not exactly sure how that happened. Seems the system removed amarok and its components, then upgraded the components but forgot to reinstall the program. That happened with several packages.

                Updated versions of packages that never removed the old versions (xulrunner for one).

                Bottom line -- the update/upgrade process is not entirely clean. I had to go through each item removed, figure out what it was, and whether it needed to be reinstalled (several did). But now autoremove seems happy.




                We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

                Comment


                  #9
                  Re: [resolved] Stopping apt/aptitude from removing most of my system

                  Hi Doc. I have discovered this problem independently and came up with a different kind of solution.

                  Correct the package list on the DVD.

                  See below....

                  Originally posted by doctordruidphd
                  I think I found out what happened. Actually, there are several problems, among them:

                  Some packages have changed dependencies, and evidently the apt system did not recognize that during updates, leaving zombie packages behind.

                  Some updates removed core packages (which I forgot about - amarok for one), and now the system is trying to remove its dependencies. I'm not exactly sure how that happened. Seems the system removed amarok and its components, then upgraded the components but forgot to reinstall the program. That happened with several packages.

                  Updated versions of packages that never removed the old versions (xulrunner for one).

                  Bottom line -- the update/upgrade process is not entirely clean. I had to go through each item removed, figure out what it was, and whether it needed to be reinstalled (several did). But now autoremove seems happy.
                  Don't try loading anything with libc-bin dependencies, or libgomp1, or you'll be right back in the fray. :-)

                  The problem is that the deps/precise/main/binary-i386/Packages.gz (and bz2) files do NOT match what's in the archive. As a result, apt-get and muon try to remove the unresolved dependencies (libs and stuff that are identical in every way but can't satisify the NNubuntuNN requirements because those are hard coded into the Depends lines), and this will truly, as you have discovered, remove everything from libc on up, including of course your desktop and even X11.

                  So... We can create a new archive Package list. (Modify this to use the paths to your DVD is you don't want the archive on your hard disk.)

                  http://kubuntuforums.net/forums/inde...opic=3119981.0

                  It sounds like you have this fixed at your end of things, but I thought I'd mention another fix for those still discovering it. :-)

                  I like your avitar. Bad hair day? ;-)

                  .

                  Comment


                    #10
                    Re: [resolved] Stopping apt/aptitude from removing most of my system

                    Hi, this is a pretty old thread. The problem with -i386 dependencies on precise is somewhat different than the problem with autoremove. I have learned NEVER to use autoremove on a development version, and haven't really had the original problem since. In fact, I just don't use autoremove; when I get a list of un-needed packages, I remove them individually.

                    The problem of 64-bit and 32-bit dependency conflicts on precise is somewhat different. What I have discovered is that the 64-bit and 32-bit packages are a little out of sync, and they are both trying to write the same file (a documentation tar.gz file) which are different versions, resulting in the newer package trying to remove the older one. I haven't seen this problem in a while, so maybe it has been resolved by the packagers.
                    We only have to look at ourselves to see how intelligent life might develop into something we wouldn't want to meet. -- Stephen Hawking

                    Comment

                    Working...
                    X