点击(此处)折叠或打开

  1. W: GPG 错误:https://download.docker.com/linux/ubuntu xenial InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 7EA0A9C3F273FCD8
  2. W: 仓库 “https://download.docker.com/linux/ubuntu xenial InRelease” 没有数字签名。
  3. N: 无法认证来自该源的数据,所以使用它会带来潜在风险。
  4. N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
  5. root@ubuntu:/docker# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7EA0A9C3F273FCD8

  6. Executing: /tmp/tmp.9KFPG4E1LI/gpg.1.sh --keyserver
  7. keyserver.ubuntu.com
  8. --recv-keys
  9. 7EA0A9C3F273FCD8
  10. gpg: requesting key F273FCD8 from hkp server keyserver.ubuntu.com
  11. gpg: key 0EBFCD88: public key "Docker Release (CE deb) " imported
  12. gpg: Total number processed: 1
  13. gpg: imported: 1 (RSA: 1)
  14. root@ubuntu:/docker# apt-get clean
  15. root@ubuntu:/docker# apt-get update

点击(此处)折叠或打开

  1. ubuntu /boot空间不足解决办法
  2. root@ubuntu:/home/ubuntu# df -hl
  3. /dev/sda1                    472M  432M   17M  97% /boot
  4. root@ubuntu:/home/ubuntu# dpkg --get-selections|grep linux
  5. console-setup-linux                install
  6. libselinux1:amd64                install
  7. linux-base                    install
  8. linux-firmware                    install
  9. linux-generic                    install
  10. linux-headers-4.4.0-31                install
  11. linux-headers-4.4.0-31-generic            install
  12. linux-headers-4.4.0-78                install
  13. linux-headers-4.4.0-78-generic            install
  14. linux-headers-4.4.0-79                install
  15. linux-headers-4.4.0-79-generic            install
  16. linux-headers-4.4.0-81                install
  17. linux-headers-4.4.0-81-generic            install
  18. linux-headers-4.4.0-83                install
  19. linux-headers-4.4.0-83-generic            install
  20. linux-headers-4.4.0-87                install
  21. linux-headers-4.4.0-87-generic            install
  22. linux-headers-4.4.0-89                install
  23. linux-headers-4.4.0-89-generic            install
  24. linux-headers-4.4.0-96                install
  25. linux-headers-4.4.0-96-generic            install
  26. linux-headers-4.4.0-97                install
  27. linux-headers-4.4.0-97-generic            install
  28. linux-headers-4.4.0-98                install
  29. linux-headers-4.4.0-98-generic            install
  30. linux-headers-generic                install
  31. linux-image-4.4.0-31-generic            deinstall
  32. linux-image-4.4.0-78-generic            deinstall
  33. linux-image-4.4.0-79-generic            install
  34. linux-image-4.4.0-81-generic            install
  35. linux-image-4.4.0-83-generic            install
  36. linux-image-4.4.0-87-generic            install
  37. linux-image-4.4.0-89-generic            install
  38. linux-image-4.4.0-96-generic            install
  39. linux-image-4.4.0-97-generic            install
  40. linux-image-4.4.0-98-generic            install
  41. linux-image-extra-4.4.0-31-generic        deinstall
  42. linux-image-extra-4.4.0-78-generic        deinstall
  43. linux-image-extra-4.4.0-79-generic        deinstall
  44. linux-image-extra-4.4.0-81-generic        deinstall
  45. linux-image-extra-4.4.0-83-generic        deinstall
  46. linux-image-extra-4.4.0-87-generic        deinstall
  47. linux-image-extra-4.4.0-89-generic        deinstall
  48. linux-image-extra-4.4.0-96-generic        install
  49. linux-image-extra-4.4.0-97-generic        install
  50. linux-image-extra-4.4.0-98-generic        install
  51. linux-image-extra-virtual            install
  52. linux-image-generic                install
  53. linux-libc-dev:amd64                install
  54. util-linux                    install
  55. #linux-后面带image的是旧的内核,可以删除,删除后显示deinstall。
  56. root@ubuntu:/home/ubuntu# apt-get remove linux-image-extra-4.4.0-89-generic
  57. root@ubuntu:/home/ubuntu# df -hl
  58. /dev/sda1                    472M  282M  167M  63% /boot

点击(此处)折叠或打开

  1. mdadm: /etc/mdadm/mdadm.conf defines no arrays.
  2. root@ubuntu:/home/ubuntu# /usr/share/mdadm/mkconf > /etc/mdadm/mdadm.conf
  3. root@ubuntu:/home/ubuntu# update-initramfs -u
  4. root@ubuntu:/home/ubuntu# reboot

点击(此处)折叠或打开

  1. E: Sub-process /usr/bin/dpkg returned an error code (1)
  2. root@ubuntu:/home/ubuntu# sudo apt-get update --fix-missing
  3. root@ubuntu:/home/ubuntu# sudo apt-get autoremove && sudo apt-get clean && sudo apt-get install -f
  4. root@ubuntu:/home/ubuntu# mv /var/lib/dpkg/info /var/lib/dpkg/info.bak
  5. root@ubuntu:/home/ubuntu# mkdir /var/lib/dpkg/info
  6. root@ubuntu:/home/ubuntu# apt-get update
  7. root@ubuntu:/home/ubuntu# apt-get -f install pkg
  8. root@ubuntu:/home/ubuntu# mv /var/lib/dpkg/info/* /var/lib/dpkg/info.bak
  9. root@ubuntu:/home/ubuntu# rm -rf /var/lib/dpkg/info
  10. root@ubuntu:/home/ubuntu# mv /var/lib/dpkg/info.bak /var/lib/dpkg/info




11-15 09:13