• 错误:Some packages could not be installed.


    1.错误描述:
    // A code block
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:

    2.解决办法:
    使用命令 lsb_release -a 查询自己系统的版本号
    我自己的是16

    sudo gedit /etc/apt/sources.list
    

    把文件中原来的内容先备份,
    再把该文件原来内容删除,把下面的内容复制过去

    deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse 
    

    执行命令,更新系统资源列表

    sudo apt-get update
    
    sudo apt-get upgrade
    

    问题解决。

    补充:

    apt-get install报错: Package ‘xxx‘ has no installation candidate
    

    也可以用上面的方法解决。
    执行更新过程可能会有点慢,大概5min-10min,耐心等待。

  • 相关阅读:
    antdesign中, 单个页面同时存在多个上传按钮
    GIF图像动态生成-JAVA后台生成
    138、★很经典的一道题目:LeetCode-42.接雨水
    十大字体设计网站年终盘点:顶级设计师独家推荐
    『忘了再学』Shell流程控制 — 34、if条件判断语句(二)
    1787_函数指针的使用
    天线设计中的负载牵引
    Linux内核编译
    Redis的集群方案
    Nodejs基于Vue的音乐播放器的设计与实现7z140
  • 原文地址:https://blog.csdn.net/weixin_44021274/article/details/127112097