版本是这样的,运行时他说不符合正则表达式,命令行里提示的一个版本,而且我虽然拿的是12.04的盘,但是我电脑装过12.04之后,后来自动升级到了13.10了。poloshiao 写了:掛載你底下有叫卸载/sys,之前也没挂载这个啊?
7. sudo mount --bind /sys /mnt/sys
卸載
16. sudo umount /sys在下面這個指令後面grep: /proc/cpuinfo: No such file or directory
6. sudo mount --bind /proc /mnt/proc
6-1. 先執行
sudo ls -al /proc/cpuinfo
看看有沒有這個檔案
6-2. 如果有 執行下面這個指令
sudo cp -af /proc/cpuinfo /mnt/proc最好是3.2.0-23版本的你爲何一下要從 3.2.0-23 跳到 3.11.0-17apt-get install --reinstall linux-image-3.11.0-17-generic
目前 12.04 的核心 最大也是 3.2.0.59.70
要超過這個版本 必須另外安裝 LTSEnablementStack
https://wiki.ubuntu.com/Kernel/LTSEnablementStack
所以建議你 安裝 3.2.0-23 或 原來已經安裝的版本 讓問題 單純化
試試這個問題 等上面的問題解決了 再看看會不會再出現/bin/df: ‘/sys/fs/cgroup’: No such file or directory
... 以下省略你既然已經直接安裝 linux-image 及 linux-headers 就不必再安裝這個apt-get install --reinstall linux-generic
下面貼文 可以提供更多的建議 你可以參考看看 我上面提供的程序 還缺少什麼
http://askubuntu.com/questions/28099/ho ... ll-kernels
http://askubuntu.com/questions/337379/a ... old-kernel
如果問題還沒解決 建議你全新安裝 Ubuntu 12.04 或 Ubuntu 14.04 比較快
如果 /dev/sda8 有重要檔案 可以先從上面掛載的 /mnt 資料夾 複製出來 備存
我不太想重新装,毕竟系统装了部分软件,当时配置也花了不少时间
现在貌似出现我删除内核文件之前的一个尴尬问题,输出结果如下。我的/boot单独设置了一个200多M的空间,因为经常升级内核版本,所以占用了很多空间,之前没升级到13.10的时候,我是用tweak里的清除内核的功能,但是不知道为什么升级到13.10后,tweak不能正常清理,我就直接到这个文件夹下,手动删除,但是就出现文件已删,已用空间减少不多,现在的问题好像也是空间不够
apt-get install --reinstall linux-image-3.11.0-17-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
account-plugin-windows-live gnome-contacts gstreamer1.0-nice guile-2.0-libs
libfarstream-0.2-2 libgc1c2 libtelepathy-farstream3 linux-headers-3.11.0-12
linux-headers-3.11.0-12-generic linux-image-3.11.0-12-generic
linux-image-3.8.0-31-generic linux-image-extra-3.11.0-12-generic
linux-image-extra-3.8.0-31-generic signon-plugin-password
Use 'apt-get autoremove' to remove them.
Suggested packages:
fdutils linux-doc-3.11.0 linux-source-3.11.0 linux-tools
The following NEW packages will be installed:
linux-image-3.11.0-17-generic
0 upgraded, 1 newly installed, 0 to remove and 262 not upgraded.
6 not fully installed or removed.
Need to get 0 B/14.4 MB of archives.
After this operation, 39.8 MB of additional disk space will be used.
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 458744 files and directories currently installed.)
Unpacking linux-image-3.11.0-17-generic (from .../linux-image-3.11.0-17-generic_3.11.0-17.31_amd64.deb) ...
Done.
dpkg: error processing /var/cache/apt/archives/linux-image-3.11.0-17-generic_3.11.0-17.31_amd64.deb (--unpack):
cannot copy extracted data for './boot/vmlinuz-3.11.0-17-generic' to '/boot/vmlinuz-3.11.0-17-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.11.0-17-generic /boot/vmlinuz-3.11.0-17-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-17-generic /boot/vmlinuz-3.11.0-17-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.11.0-17-generic_3.11.0-17.31_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)