ubuntu

差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

下次修改
前次修改
ubuntu [2017/11/04 20:49] – 建立 jzubuntu [2021/09/20 23:26] (目前版本) jz
行 2: 行 2:
  
 ===== Fix boot partition full ===== ===== Fix boot partition full =====
 +<code>
 +sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r`
 +sudo rm -rf /boot/*-3.2.0-{23,45,49,51,52,53,54,55}-*
 +sudo apt-get -f install
 +</code>
 +
 +[[https://askubuntu.com/questions/345588/what-is-the-safest-way-to-clean-up-boot-partition]]
 +
 <code> <code>
 # check current running linux kernel version # check current running linux kernel version
 uname -a uname -a
 +
 # remove old kernel at /boot # remove old kernel at /boot
 +apt-get purge linux-image-4.4.0-101-generic
 +
 # fix broken package # fix broken package
 apt-get -f install apt-get -f install
 # clean up # clean up
 apt-get autoremove apt-get autoremove
 +vi /etc/apt/apt.conf.d/50unattended-upgrades
 +Unattended-Upgrade::Remove-Unused-Dependencies "true";
 </code> </code>
  
  • ubuntu.1509799784.txt.gz
  • 上一次變更: 2017/11/04 20:49
  • jz