如果我执行任何 apt-get install,它都会永久挂起(必须按 CTRL-Z,CTRL-C 不起作用),然后破坏 dpkg(必须运行 dpkg --configure 等),我必须终止所有与 rsyslog 相关的进程。我在 rsyslog5.28 上看到过类似的问题,但我运行的是 7.4.4-ubuntu2.5。
这使我无法安装或升级任何软件包。有什么想法吗?TIA。
我在 GCE Image 上运行 Ubuntu 14.04.1。
3.16.0-29-通用#39-Ubuntu SMP 2014 年 12 月 16 日星期二 20:54:13 UTC x86_64 x86_64 x86_64 GNU/Linux
这就是我剩下的
syslog 24545 0.0 0.0 274636 3216 ? Ssl 07:33 0:00 rsyslogd
root 25702 0.0 0.0 15312 4212 pts/1 Ss+ 07:42 0:00 /usr/bin/dpkg --status-fd 26 --configure rsyslog:amd64
root 25703 0.0 0.0 4452 1556 pts/1 S+ 07:42 0:00 /bin/sh /var/lib/dpkg/info/rsyslog.postinst configure 7.4.4-1ubuntu2.3
root 25810 0.0 0.0 4452 1572 pts/1 S+ 07:42 0:00 /bin/sh /usr/sbin/invoke-rc.d rsyslog restart
root 25839 0.0 0.0 16896 2316 pts/1 S+ 07:42 0:00 start rsyslog
sumeet 25863 0.0 0.0 10476 2176 pts/0 S+ 07:43 0:00 grep --color=auto rsyslog
这是我发出的示例命令:
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
rsyslog
Suggested packages:
rsyslog-mysql rsyslog-pgsql rsyslog-doc rsyslog-gnutls rsyslog-gssapi
rsyslog-relp
The following NEW packages will be installed:
rsyslog
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 355 kB of archives.
After this operation, 1,578 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://gce.clouds.archive.ubuntu.com/ubuntu/ trusty-updates/main rsyslog amd64 7.4.4-1ubuntu2.5 [355 kB]
Fetched 355 kB in 1s (334 kB/s)
Selecting previously unselected package rsyslog.
(Reading database ... 48585 files and directories currently installed.)
Preparing to unpack .../rsyslog_7.4.4-1ubuntu2.5_amd64.deb ...
Unpacking rsyslog (7.4.4-1ubuntu2.5) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up rsyslog (7.4.4-1ubuntu2.5) ...
The user `syslog' is already a member of `adm'.
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd