当前位置:   article > 正文

ubuntu命令“sudo apt-get install”无法定位软件包?_sudo apt-get install无法定位软件包

sudo apt-get install无法定位软件包

解决ubuntu命令“sudo apt-get install”无法定位软件包的问题:

1、添加镜像源,修改软件源列表:sudo vim /etc/apt/sources.list

  1. #阿里云源地址
  2. deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
  3. deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
  4. deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
  5. deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
  6. deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
  7. deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
  8. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
  9. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
  10. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
  11. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
  12. #华为源地址
  13. deb https://repo.huaweicloud.com/ubuntu/ focal main restricted
  14. deb https://repo.huaweicloud.com/ubuntu/ focal-updates main restricted
  15. deb https://repo.huaweicloud.com/ubuntu/ focal universe
  16. deb https://repo.huaweicloud.com/ubuntu/ focal-updates universe
  17. deb https://repo.huaweicloud.com/ubuntu/ focal-backports main restricted universe
  18. deb https://repo.huaweicloud.com/ubuntu/ focal-security main restricted
  19. deb https://repo.huaweicloud.com/ubuntu/ focal-security universe
  20. #中科大源地址
  21. deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
  22. deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
  23. deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
  24. deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
  25. deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
  26. deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
  27. deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
  28. deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
  29. deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
  30. deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
  31. #163源地址
  32. deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
  33. deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
  34. deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
  35. deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
  36. deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
  37. deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
  38. deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
  39. deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
  40. deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
  41. deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
  42. #清华源地址
  43. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
  44. deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
  45. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
  46. deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
  47. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
  48. deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
  49. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
  50. deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
  51. deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
  52. deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

2、更新源
    sudo apt-get update
    sudo apt-get upgrade

3、接下来便可以安装未成功安装的软件包了,并且速度会比之前更快。
 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/497573
推荐阅读
相关标签
  

闽ICP备14008679号