无法在 12.04 上升级 procps

s1l*_*v3r 3 upgrade ipv6 apt proc

如果我正在执行,apt-get upgrade我会收到以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  procps
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/235 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 237, in <module>
    main()
  File "/usr/bin/apt-listchanges", line 48, in main
    debs = apt_listchanges.read_apt_pipeline(config)
  File "/usr/share/apt-listchanges/apt_listchanges.py", line 83, in read_apt_pipeline
    return map(lambda pkg: filenames[pkg], order)
  File "/usr/share/apt-listchanges/apt_listchanges.py", line 83, in <lambda>
    return map(lambda pkg: filenames[pkg], order)
KeyError: 'procps'
Setting up procps (1:3.2.8-11ubuntu6.2) ...
start: Job failed to start
invoke-rc.d: initscript procps, action "start" failed.
dpkg: error processing procps (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 procps
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)

cat /etc/sysctl.d/*.conf /etc/sysctl.conf | sudo sysctl -p -返回:

kernel.printk = 4 4 1 7
error: "net.ipv6.conf.all.use_tempaddr" is an unknown key
error: "net.ipv6.conf.default.use_tempaddr" is an unknown key
error: "Invalid argument" setting key "kernel.kptr_restrict"
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.tcp_syncookies = 1
error: "kernel.yama.ptrace_scope" is an unknown key
vm.mmap_min_addr = 65536
net.ipv6.conf.all.autoconf = 0
net.ipv6.conf.default.autoconf = 0
net.ipv6.conf.eth0.autoconf = 0
net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.default.accept_ra = 0
net.ipv6.conf.eth0.accept_ra = 0
net.ipv6.conf.all.autoconf = 0
net.ipv6.conf.default.autoconf = 0
net.ipv6.conf.eth0.autoconf = 0
net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.default.accept_ra = 0
net.ipv6.conf.eth0.accept_ra = 0
Run Code Online (Sandbox Code Playgroud)

有没有人知道可能出了什么问题?

Suk*_*a91 9

首先尝试将您的 procps.conf 重命名为

sudo mv /etc/init/procps.conf /etc/init/procps.conf.old
Run Code Online (Sandbox Code Playgroud)

如果它有效,那么好,否则最后的解决方法是下载 procps (1:3.3.3-2ubuntu7) 和 libprocps0 (1:3.3.3-2ubuntu7) 然后手动安装它们。

您可以从-下载它们

http://packages.ubuntu.com/saucy/procps

http://packages.ubuntu.com/saucy/libprocps0

更新它们可以解决这里提到的问题https://bugs.launchpad.net/ubuntu/+source/procps/+bug/1157643。这是一个众所周知的错误,请访问提供的链接。

希望这次能奏效。