web-dev-qa-db-ja.com

apt-一見無関係なパッケージを削除するパージを取得

Postfixの認証をインストールしているときに、どういうわけか/var/run/saslauthdディレクトリを削除できたので、すべてのファイルを再生成するために、apt-get purgeを再インストールしてから、さまざまなsaslauthdパッケージを再インストールしようとしました。ただし、apt-get purge libsasl2-2 sasl2-bin libsasl2-modulesを実行しようとすると、APTは、ApacheやGitなどの無関係なパッケージを削除しようとしていました。

root@localhost:~# apt-get purge libsasl2-2 sasl2-bin libsasl2-modules
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  Apache2-data Apache2-utils bsdtar db-util db5.3-util debugedit fonts-droid-fallback fonts-noto-mono gamin ghostscript git-man imagemagick-common libapr1 libapr1-dev libaprutil1 libaprutil1-dbd-sqlite3 libarchive-tools libarchive13
  libconfig-file-Perl libcupsfilters1 libcupsimage2 libecap3 liberror-Perl libfftw3-double3 libgamin0 libgs9 libgs9-common libijs-0.35 libjbig2dec0 liblqr-1-0 liblua5.1-0 liblzo2-2 libm17n-0 libmagickcore-6.q16-2 libmagickwand-6.q16-2
  libminiupnpc10 libnatpmp1 libotf0 libpaper-utils libpaper1 libregexp-assemble-Perl librpm3 librpmbuild3 librpmio3 librpmsign3 librtmp1 libsctp-dev libsctp1 libsqlite0 lksctp-tools m17n-db poppler-data python-libxml2 python-lzma
  python-rpm python-sqlite python-sqlitecachec python3-xkit rpm rpm-common rpm2cpio Ruby-childprocess Ruby-domain-name Ruby-erubis Ruby-ffi Ruby-http-cookie Ruby-i18n Ruby-listen Ruby-log4r Ruby-mime-types Ruby-net-scp Ruby-net-sftp
  Ruby-net-ssh Ruby-netrc Ruby-nokogiri Ruby-pkg-config Ruby-rb-inotify Ruby-rest-client Ruby-sqlite3 Ruby-unf Ruby-unf-ext spawn-fcgi sqlite3 squid-common squid-langpack transmission-common ubuntu-drivers-common uuid-dev
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  Apache2* Apache2-bin* Apache2-dev* apt-file* apt-transport-https* curl* dirmngr* emacs24* gconf-service* gconf-service-backend* gconf2* git* libaprutil1-dev* libaprutil1-ldap* libcurl3* libcurl3-gnutls* libcurl4-gnutls-dev*
  libldap-2.4-2* libldap2-dev* libsasl2-2* libsasl2-dev* libsasl2-modules* lighttpd* php-elisp* php7.0-curl* postfix* python-apt* python-pycurl* python-software-properties* python-urlgrabber* python3-pycurl*
  python3-software-properties* sasl2-bin* software-properties-common* software-properties-gtk* squid* squid3* transmission-cli* vagrant* yum*
0 upgraded, 0 newly installed, 40 to remove and 0 not upgraded.
After this operation, 85.4 MB disk space will be freed.
Do you want to continue? [Y/n]

Ubuntu16.10を実行しています。

どうすればこれを修正できますか?

3
Nick Clifford

了解しました。これでどのように修正されたかはわかりませんが、Postfixのアンインストールと再インストールはうまくいきました。

0
Nick Clifford