Linux

関連ページ

ハッシュの計算方法

$ echo -n rawdata | sha1sum

upstart の initctl restart

kernel お掃除

  • apt-get autoremove で消してみる
    $ sudo apt-get autoremove --purge
  • ↑で消えない場合は、以下の方法を使う
    $ dpkg -l linux-{{image,modules}{,-extra},headers}-"[0-9]*" | awk '/^(pi|i[iUF]|rc)/{ print $2; }' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e '[0-9]' | grep -v <インストールされている kernel の中で最新バージョン> | xargs sudo dpkg -P
    • 現在起動しているバージョンを除く、全バージョンを purge する dpkg one-liner

apt 時に出る libvirt-bin 関連のエラー

  • 以下のエラーが出た場合は、apt 実行前に pkill -f libvirtd してあげる
    Preparing to unpack .../tzdata_2018i-0ubuntu0.16.04_all.deb ... Unpacking tzdata (2018i-0ubuntu0.16.04) over (2018g-0ubuntu0.16.04) ... Setting up libvirt-bin (1.3.1-1ubuntu10.24) ... Job for libvirt-bin.service failed because the control process exited with error code. See "systemctl status libvirt-bin.service" and "journalctl -xe" for details. invoke-rc.d: initscript libvirt-bin, action "restart" failed. dpkg: error processing package libvirt-bin (--configure): subprocess installed post-installation script returned error exit status 1
  • 参考