我安装了全新的ubuntu,然后安装软件时报错了:

root@ubuntu:/home/zhang# apt install g++
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:g++ : Depends: g++-5 (>= 5.3.1-3~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我很奇怪,毕竟是全新的系统,为什么会报这个错。然后我想起了之前替换了更新源,可能是更新源换错了。我去看,发现更新源果然换错了,我把ubuntu 16.04的更新源给我这台ubuntu18.04用。
把更新源修改后就没问题了。

ubuntu报错解决:The following packages have unmet dependencies:相关推荐

  1. 解决The following packages have unmet dependencies: vim : Depends: vim-runtime (= 2:7.4.052-1ubu

    仔细看报错说明,把报错的软件删了,再当前的软件,刚刚删了的会自动补上合适的版本 sudo apt-get remove vim-runtime sudo apt-get install vim roo ...

  2. Linux/Debian/Ubuntu报错解决:W: Target Packages (main/binary-amd64/Packages) is configured multiple times

    此文首发于我的Jekyll博客:zhang0peter的个人博客 今天在ubuntu上更新库(apt update)的时候遇到了报错: -> # apt update Hit:1 http:// ...

  3. Debian/Ubuntu 报错解决:Command 'ifconfig' not found, but can be installed with

    我的个人博客:zhang0peter的个人博客 现在新版本的Linux已经不提供net-tools工具,自然也就找不到ifconfig命令,如果你想使用ifconfig,安装如下: zhang@ubu ...

  4. Debian/Ubuntu 报错解决:-bash: ifconfig: command not found

    晚上在虚拟机里安装了最新的 Debian 9,然后想查看ip地址的时候报错了: zhang@debian:~$ ifconfig -bash: ifconfig: command not found ...

  5. 解决The following packages have unmet dependencies问题!!!

    安装aptitude: sudo apt-get install aptitude 安装成功后,再利用aptitude安装所需的包 sudo aptitude install gcc

  6. ubuntu 系统 apt-get install python3-pip 依赖报错解决方法

    1. 直接安装报依赖错误 直接使用 apt-get install python3-pip 安装 sudo apt-get install python3-pip 报以下依赖错误 ubuntu@ubu ...

  7. 从零开始在ubuntu上安装和使用k8s集群及报错解决

    文章目录 安装docker 安装kubernetes 配置k8s集群 配置虚拟机网络 配置Master节点的k8s网络 拉取k8s需要的镜像 启动 kubeadm 和 kubelet 配置 node节 ...

  8. Linux/ubuntu 安装 redis 4.0报错解决:redis-server.service: Can't open PID file /var/run/redis/redis-server.

    此文首发于我的个人博客:Linux/ubuntu 安装 redis 4.0报错解决:redis-server.service: Can't open PID file /var/run/redis/r ...

  9. 解决Sublime包管理package control 报错 There are no packages available for installation

    解决Sublime包管理package control 报错 There are no packages available for installation 真的是哔了狗了,要不是我机智的重新安装了 ...

最新文章

  1. 读《大道至简》第六章感想
  2. malloc()/free()的实现
  3. php扩展-ioncube组件的安装方法_Windows系统PHPStudy Web环境安装ionCube扩展软件
  4. linux数据被删了怎么办
  5. 记一次安装docker的坑
  6. plsql查看表空间_最佳实践—PG数据库系统表空间重建
  7. android sqlite触发器,SQLite---使用触发器(Trigger)
  8. BGP——OSPF与BGP协议联动(出现问题+解决方案配置)
  9. 发布一个mmap的trie_midrmm02_新浪博客
  10. 跟着开涛springmvc学习(转)
  11. Java 面向对象 --匿名内部类
  12. java 中常见的文件上传方式_java中如何上传文件
  13. Unity控制摄像机缓慢移动的代码(插值计算 非常丝滑)
  14. 零基础最详细html和css
  15. MongoDB内嵌文档查询
  16. 滴滴云部署 Hadoop2.7.7+Hive2.3.4
  17. elasticsearch OOM
  18. Error:.系统错误,错误码:80058,desc of scope.userLocation is empty[20210513 20:05:21][wxd0659441b63ab707]
  19. sqlplus的简单使用和常用命令
  20. 客观赋权法的python实现

热门文章

  1. RDKit | 基于分子指纹的分子相似性
  2. python源文件保存在哪里_python数据爬下来保存在哪里
  3. 零基础入门学习Python(8)-了不起的分支和循环3
  4. Nature Plants:河南大学王学路团队揭示大豆与根瘤菌匹配性的进化及其分子机制...
  5. GPB编辑部招聘启事 2019 Impact Factor破7;CiteScore破10
  6. R语言:生成正态分布数据生成--rnorm,dnorm,pnorm,qnorm
  7. Microbiome:在人工肠道中建立动态线性模型指导设计和分析微生物组研究
  8. R语言使用rpart包构建决策树模型、使用prune函数进行树的剪枝、交叉验证预防过拟合、plotcp可视化复杂度、rpart.plot包可视化决策树、使用table函数计算混淆矩阵评估分类模型性能
  9. R语言ggplot2可视化自定义图例(legend)方框(box):所有图例没有方框、每个图例分别在不同的方框中、多个图例放置在同一个方框中
  10. R语言caret包构建xgboost模型实战:特征工程(连续数据离散化、因子化、无用特征删除)、配置模型参数(随机超参数寻优、10折交叉验证)并训练模型