LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 02-25-2011, 01:49 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,618

Rep: Reputation: 48
strange apt-get autoremove after gnome-games removing


Hello

I've removed gnome-games on my squeeze server using:
Code:
# apt-get remove gnome-games
because I don't need any games on a server.
Then I couldn't install any programs using "apt-get install package", the system will strictly "apt-get autoremove".
So I've done:
Code:
# apt-get autoremove
and the following packages were removed:
Code:
The following packages will be REMOVED:
  aptdaemon binfmt-support cli-common dnsmasq-base epiphany-extensions
  evolution-exchange freeglut3 gdebi gdebi-core gedit-plugins gnome-cards-data
  gnome-codec-install gnome-games-data gnome-games-extra-data gnome-office
  gnome-themes-extras gnome-themes-more gnuchess gnuchess-book
  gtk2-engines-smooth guile-1.8-libs libart2.0-cil libgconf2.0-cil libgee2
  libgexiv2-0 libglade2.0-cil libglib2.0-cil libgmime2.4-cil
  libgnome-vfs2.0-cil libgnome2.24-cil libgnomepanel2.24-cil libgpod-common
  libgpod4 libgtk2.0-cil libmono-addins-gui0.2-cil libmono-addins0.2-cil
  libmono-cairo2.0-cil libmono-corlib2.0-cil libmono-i18n-west2.0-cil
  libmono-posix2.0-cil libmono-security2.0-cil libmono-sharpzip2.84-cil
  libmono-system2.0-cil libmtp8 libndesk-dbus-glib1.0-cil libndesk-dbus1.0-cil
  libnm-glib-vpn1 libpcsclite1 liferea liferea-data media-player-info
  mesa-utils mobile-broadband-provider-info modemmanager mono-2.0-gac mono-gac
  mono-runtime network-manager network-manager-gnome ppp python-aptdaemon
  python-aptdaemon-gtk python-bugbuddy python-gtkglext1 python-mako
  python-markupsafe python-opengl python-vte python-webkit rhythmbox
  rhythmbox-plugin-cdrecorder rhythmbox-plugins shotwell simple-scan
  software-center tcl tcl8.4 tomboy totem-mozilla transmission-common
  transmission-gtk update-manager-core update-manager-gnome update-notifier
  update-notifier-common usb-modeswitch usb-modeswitch-data wpasupplicant
0 upgraded, 0 newly installed, 88 to remove and 0 not upgraded.
After this operation, 213 MB disk space will be freed.
Do you want to continue [Y/n]? y
I have done "yes" and now get a lot of problems like:

1.) after restart the network card eth0 was switching to DHCP

2.) network and update manager were removed

etc.

BTW "apt-get autoremove" before gnome-games removing was happy, really strange.
If you want to produce this problem, pls try to remove first gnome-games.

Last edited by cccc; 02-26-2011 at 04:52 AM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-25-2011, 02:33 PM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hello,

Looks like a goofy situation indeed. Have a backup of your documents? I think the fastest way out is a complete reinstall from scratch.

Kind regards,

Eric
 
Old 02-25-2011, 02:35 PM   #3
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
Were you meaning to remove all of those packages? I'm pretty sure you saw network-manager in the list before manually hitting that Y key on your keyboard... Just saying man... I've done dumb **** like that too in the past Not removing packages like so, but pretty damn close...

Last edited by corp769; 02-25-2011 at 02:36 PM.
 
Old 02-25-2011, 03:09 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,648
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
This is a common problem, it is caused by the use of metapackages, in your case gnome-desktop-environment. This package is used to bring up the Debian standard desktop in the Gnome version. It contains no software, it's only purpose is to have dependencies that are pulled in during installation. If you remove gnome-games, which is one of these dependencies, it will also remove gnome-desktop-environment, because of nut fulfilled dependencies. This will mark all the other dependencies as no longer needed, because they were pulled in as dependencies.

Why did you hit the Y-key, after you have seen that so many packages will be removed?

Anyways, I would recommend a different approach for a production server. Do a minimal install and then only install what you need on the machine. Try to not use metapackages. This way you will get a lean system, that has no cruft on it. If this is a production server, do you really need GUI-tools for administrating it?
 
2 members found this post helpful.
Old 02-25-2011, 03:54 PM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,618

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by EricTRA View Post
Hello,

Looks like a goofy situation indeed. Have a backup of your documents? I think the fastest way out is a complete reinstall from scratch.

Kind regards,

Eric
Yep, the whole server was backuped before.
 
Old 02-25-2011, 04:06 PM   #6
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,618

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by TobiSGD View Post
If this is a production server, do you really need GUI-tools for administrating it?
We need X windows for some GUI's like Wireshark etc.
This server was backuped before this action and I've restored the whole server.
Now it is back to normal.
I'd just like to aware in my posting, what could happen by hitting "yes" after "apt-get autoremove"
 
Old 02-26-2011, 02:45 AM   #7
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hello,

Glad to hear you got it solved. If you consider your question/problem solved then please mark it as such using the Thread Tools.

Kind regards,

Eric
 
Old 02-27-2011, 06:30 PM   #8
lkid
LQ Newbie
 
Registered: Feb 2011
Posts: 1

Rep: Reputation: Disabled
This just happened to me (pft!). The removal killed my network connections. I fixed it by making an .sh that contained:

apt-get install *missing packages*

I rebooted using the install cd to the rescue shell (which connected me to the main repos), then running the script with:

./thatwilllearnme.sh

Back to normal. Seems madness that removing 'gnome-games' takes out the meta-package 'gnome' which is used for a lot of other important stuff...

Anyway hope this helps the next person.

Last edited by lkid; 02-28-2011 at 03:55 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
apt-get autoremove cccc Debian 3 09-27-2010 03:43 AM
apt-get autoremove whittycat Debian 5 09-22-2009 03:13 AM
apt-get autoremove cccc Debian 2 07-26-2009 03:55 PM
apt-get autoremove, LIES!! BigglesPiP Debian 18 01-24-2009 12:22 PM
Significant change caused by apt-get-autoremove, new package, or full disk- which? sonichedgehog Debian 0 02-06-2008 07:36 PM


All times are GMT -5. The time now is 10:10 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration