Почему удаление нескольких модулей приведет к удалению большого количества пакетов?

Я выполнил следующее:

sudo apt-get remove postfix mailutils libsasl2-2 ca-certificates libsasl2-modules

Почему эта команда делает следующее и как лучше всего отменить его?

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  couchdb-common erlang-asn1 erlang-base-hipe erlang-crypto erlang-eunit
  erlang-inets erlang-mnesia erlang-os-mon erlang-public-key
  erlang-runtime-tools erlang-snmp erlang-ssl erlang-syntax-tools erlang-tools
  erlang-webtool erlang-xmerl gtk2-engines libbit-vector-perl
  libcarp-clan-perl libclass-data-inheritable-perl
  libclass-method-modifiers-perl libcommon-sense-perl
  libcrypt-openssl-bignum-perl libcrypt-openssl-rsa-perl libdata-random-perl
  libdate-calc-perl libdate-calc-xs-perl libenet2a libextutils-depends-perl
  libextutils-pkgconfig-perl libgd-perl libgnome2-canvas-perl
  libgnome2-wnck-perl libgoo-canvas-perl libgoocanvas-common libgoocanvas3
  libgtk2-appindicator-perl libgtk2-imageview-perl libgtk2-unique-perl
  libgtkimageview0 libhttp-server-simple-perl libjs-prototype
  libjs-scriptaculous libjson-perl libjson-xs-perl libmouse-perl
  libmozjs185-1.0 libpath-class-perl libproc-processtable-perl
  libproc-simple-perl libsctp1 libsort-naturally-perl libtie-ixhash-perl
  libunique-1.0-0 libx11-protocol-perl libxml-xpathengine-perl lksctp-tools
  perlmagick supertuxkart-data
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libxml-libxml-perl
The following packages will be REMOVED
  account-plugin-aim account-plugin-yahoo aisleriot apt-transport-https apturl
  atom ca-certificates checkbox-gui checkbox-ng checkbox-ng-service
  chromium-browser chromium-browser-l10n compiz compiz-gnome couchdb
  couchdb-bin curl darktable deja-dup-backend-gvfs evolution-data-server
  gconf-service gconf-service-backend gconf2 gir1.2-gdata-0.0 git
  gnome-contacts gnome-terminal gnome-terminal-data gnome-user-share
  gstreamer0.10-plugins-bad gstreamer1.0-plugins-bad gvfs-backends
  indicator-applet kerneloops-daemon libbonoboui2-0 libcmis-0.4-4 libcurl3
  libcurl3-gnutls libflickcurl0 libfolks-eds25 libgconf2-4 libgdata13
  libgnome2-0 libgnome2-bin libgnome2-common libgnome2-gconf-perl
  libgnome2-perl libgnome2-vfs-perl libgnomeui-0 libgnomevfs2-0
  libgnomevfs2-common libgnomevfs2-extra libldap-2.4-2 libldb1
  liblwp-protocol-https-perl libmailutils4 libnet-dbus-perl
  libnet-dropbox-api-perl libnet-oauth-perl liboauth0 libpanel-applet-4-0
  libpurple0 libraptor2-0 librasqal3 librdf0
  libreoffice-avmedia-backend-gstreamer libreoffice-base-core libreoffice-calc
  libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk
  libreoffice-help-en-us libreoffice-impress libreoffice-math
  libreoffice-ogltrans libreoffice-pdfimport
  libreoffice-presentation-minimizer libreoffice-writer libruby1.9.1
  libsasl2-2 libsasl2-modules libslv2-9 libsmbclient libspice-server1
  libwww-mechanize-perl libwww-perl libxml-parser-perl libxml-sax-expat-perl
  libxml-twig-perl mailutils mythes-en-us nautilus-share network-manager-gnome
  oneconf oneconf-common postfix python-cupshelpers python-gconf python-gnome2
  python-httplib2 python-ldb python-oneconf python-piston-mini-client
  python-pycurl python-requests python-samba python-smbc
  python-ubuntu-sso-client python3-checkbox-ng python3-httplib2
  python3-oneconf python3-piston-mini-client python3-pycurl python3-requests
  python3-software-properties python3-uno redshift ruby ruby1.9.1
  samba-common-bin samba-libs seahorse shutter smbclient software-center
  software-center-aptdaemon-plugins software-properties-common
  software-properties-gtk spotify-client steam-launcher supertuxkart
  system-config-printer-common system-config-printer-gnome
  system-config-printer-udev telepathy-haze transmission-gtk ubuntu-desktop
  ubuntu-sso-client ubuntu-sso-client-qt unity unity-lens-photos
  unity-scope-gdrive unity-scope-musicstores vlc vlc-nox vlc-plugin-notify
  vlc-plugin-pulse whoopsie xserver-xorg-video-all xserver-xorg-video-qxl
The following NEW packages will be installed
  libxml-libxml-perl
0 to upgrade, 1 to newly install, 151 to remove and 9 not to upgrade.
Need to get 337 kB of archives.
After this operation, 1,072 MB disk space will be freed.
Do you want to continue? [Y/n]
1
задан 4 June 2015 в 20:27

2 ответа

Зависимости

Много тех пакетов зависят от пакета, названного ubuntu-desktop.

Теперь Вы не приняли решение удалить это - это не находится в этом списке:

postfix mailutils libsasl2-2 ca-certificates libsasl2-modules

, но примечание пакет ca-certificates.

я выполнил эту команду:

apt-cache rdepends postfix mailutils libsasl2-2 ca-certificates libsasl2-modules

и это дает мне список, как это:

postfix
Reverse Depends:
 |ubumirror
  postfix-policyd-spf-python
  postfix:i386
  ...
mailutils
Reverse Depends:
  heirloom-mailx:i386
  bsd-mailx:i386
  ...
libsasl2-2
Reverse Depends:
  libvirt0
  libvirt-bin
  mutt-patched
  libkmanagesieve4
  libkldap4
  libkimap4
  ...
ca-certificates
Reverse Depends:
  google-chrome-unstable
  google-chrome-stable
  google-chrome-beta
  ubuntu-touch
  ...
  ubuntu-desktop
  ...
libsasl2-modules
Reverse Depends:
  xubuntu-desktop
  ubuntustudio-desktop
  ubuntu-gnome-desktop
  sendmail-bin
  ...

ca-certificates важно здесь, потому что ubuntu-desktop зависит от него.

Много потребностей материала ubuntu-desktop. Много. При удалении тех много материала повредится - так не удаляйте их. Если Вы имеете к, не удаляйте ca-certificates - почему Вы пытались?

0
ответ дан 4 June 2015 в 20:27

Это вызвано тем, что удаляют части того, пакеты повреждают dependecies других пакетов.

Вы лучше не соглашаетесь с тем удалением.

, Если Вы уже удалили все это, можно восстановить его

sudo apt-get install ubuntu-desktop

, Но нет никакой гарантии, что все восстанавливается.

можно посмотреть в /var/log/apt/history.log и видеть то, что было удалено. Тогда установка недостающие пакеты.

, Но ubuntu-desktop должен вытянуть большинство из них если не все.

В Вашем конкретном случае НЕ УДАЛЯЮТ сертификаты CA

0
ответ дан 4 June 2015 в 20:27

Другие вопросы по тегам:

Похожие вопросы: