下达命令时
sudo apt-get update
我收到以下错误:
E: Syntax error /etc/apt/apt.conf.d/01autoremove-kernels:1:
Extra junk at end of file.
桌面右上角还出现一个带有负号的红色圆圈,我无法访问更新管理器。
答案1
- 尝试
sudo /etc/kernel/postinst.d/apt-auto-removal
sudo apt-get update && sudo apt-get dist-upgrade
- 前
/etc/apt/apt.conf.d/01autoremove-kernels
../../../linux-headers-3.2.0-65/scripts/kconfig/streamline_config.pl\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\.............
- 后
/etc/apt/apt.conf.d/01autoremove-kernels
// File autogenerated by /etc/kernel/postinst.d/apt-auto-removal, do not edit APT { NeverAutoRemove { "^linux-image-3.2.0-65-generic$"; "^linux-image-extra-3.2.0-65-generic$"; "^linux-signed-image-3.2.0-65-generic$"; "^linux-backports-modules-.*-3.2.0-65-generic$"; "^linux-headers-3.2.0-65-generic$"; "^linux-tools-3.2.0-65-generic$"; }; };