当我尝试通过终端安装 plasma-nm 时,
sudo apt-get install plasma-nm
或执行autoremove
sudo apt-get autoremove,
我收到以下错误
Removing linux-image-4.8.0-46-generic (4.8.0-46.49) ...
dpkg: error processing package linux-image-4.8.0-46-generic (--remove):
unable to securely remove '/lib/modules/4.8.0-46-generic/kernel/drivers/video/fbdev/sis/sisfb.ko': Not a directory
Errors were encountered while processing:
linux-image-4.8.0-46-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
根据 Zanna 的建议,我尝试使用以下方法重新安装“linux-image-4.8.0-46-generic”
sudo apt install --reinstall linux-image-4.8.0-46-generic
进而
sudo apt-get 自动删除
这解决了我的问题。我可以删除不必要的包