我刚把ubuntu从14.04升级到16.04。
但后来我意识到iptables-persistent不见了。
因此,我决定重新安装它,使用以下命令:
sudo apt-get install iptables-persistent --reinstall但它给了我一些警告信息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
aptitude-common dh-apparmor g++-4.8 libaio1 libarchive13 libboost-iostreams1.54.0 libboost-iostreams1.58.0 libcgi-fast-perl libcgi-pm-perl libclass-accessor-perl libcolord1 libcolorhug1 libcwidget3
libencode-locale-perl libept1.4.12 libfcgi-perl libgif4 libgphoto2-port10 libgssglue1 libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl
libio-html-perl libio-string-perl libisl10 libldb1 liblwp-mediatypes-perl liblzo2-2 libntdb1 libonig2 libparse-debianchangelog-perl libqdbm14 libsigc++-2.0-0c2a libstdc++-4.8-dev libsub-name-perl
libtalloc2 libtdb1 libterm-readkey-perl libtevent0 liburi-perl libv4l-0 libv4lconvert0 libvpx1 libwbclient0 libxapian22v5 m17n-contrib mysql-client-5.7 mysql-client-core-5.7 mysql-server-core-5.7
nagios-plugins-common nagios-plugins-standard python-colorama python-crypto python-distlib python-html5lib python-ldb python-ntdb python-pyinotify python-talloc python-tdb rlwrap samba-common
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/6,540 B of archives.
After this operation, 0 B of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 63410 files and directories currently installed.)
Preparing to unpack .../iptables-persistent_1.0.4_all.deb ...
Unpacking iptables-persistent (1.0.4) over (1.0.4) ...
Setting up pppconfig (2.3.22) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: warning: script 'S02fw.set' missing LSB tags and overrides
insserv: warning: script 'fw.set' missing LSB tags and overrides
Setting up iptables-persistent (1.0.4) ...
insserv: warning: script 'S02fw.set' missing LSB tags and overrides
insserv: warning: script 'fw.set' missing LSB tags and overrides
You have mail in /var/mail/root这样可以吗?我只想确保一切都完美无缺
发布于 2020-02-04 20:09:56
这些警告与Ubuntu在安装过程中启动/激活某些服务有关,无需担心。
历史上,Ubuntu中使用了不同的init系统。现在使用了systemd,但是更早的时候,Ubuntu使用了Upstart,甚至在此之前(很久以前),Ubuntu使用了SysVinit。
有些脚本可能仍然躺在一些安装例程中,这些例程试图使用老式类型的命令来操作服务,当这种情况发生时,您就会收到您所看到的警告。这本身并不需要担心:被调用的实用程序(在您的例子中是update-rc.d和insserv )只是提醒您应该更新这些脚本,并且它们会恢复到一些应该很好的默认行为。如果不是,并且实际需要对脚本进行更新,安装的包才能正常工作,那么这种情况可能已经发生了。
(在您的示例中,update-rc.d似乎是使用start选项调用的,该选项是不推荐的;它用于创建一些符号链接,以便在给定的运行级别中启动某些服务。因此,update-rc.d返回到命令defaults,这意味着相应的服务将在其LSB头中指定的运行级别中启动/停止;为此,它使用insserv。其中两个服务缺少一个LSB头,因此insserv也会恢复到一些缺省值。我不知道这些是什么,但我想他们会没事的。无论如何,可能发生的最糟糕的事情是,某些服务不是在您期望它运行的运行级别启动的,这应该不难修复。)
https://askubuntu.com/questions/1208040
复制相似问题