![无法在 12.04 上升级 procps](https://linux22.com/image/970710/%E6%97%A0%E6%B3%95%E5%9C%A8%2012.04%20%E4%B8%8A%E5%8D%87%E7%BA%A7%20procps.png)
如果我正在执行,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)
并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
有人知道可能出了什么问题吗?
答案1
首先尝试将 procps.conf 重命名为
sudo mv /etc/init/procps.conf /etc/init/procps.conf.old
如果它有效,那就很好了,否则最后的解决方法是下载 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. 这是一个众所周知的错误,请访问提供的链接。
希望这次能够成功。