长不熟的西瓜 2022-01-28 09:21 采纳率: 42.9%
浏览 24

Ubuntu apt-get命令错误,如何解决?

服务器是 Ubuntu 16.04 server 64bit的镜像
本想在上边装一个svn,但是好像安装包有问题,提示python包版本错误什么的,头一次遇到这种问题。(无语了好久)
root@ecs-272468:~# sudo apt-get install subversion
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 python-minimal : Depends: python2.7-minimal (>= 2.7.12-1~) but it is not going to be installed
                  Recommends: python but it is not going to be installed
 python2.7 : Depends: python2.7-minimal (= 2.7.12-1ubuntu0~16.04.18) but it is not going to be installed
 subversion : Depends: libsvn1 (= 1.9.3-2ubuntu1.3) but it is not going to be installed
              Depends: libapr1 (>= 1.5.0) but it is not going to be installed
              Depends: libaprutil1 (>= 1.3.2+dfsg) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
之后想再卸载python2.7重装下,也是出现类似错误
root@ecs-272468:~# sudo apt-get remove python2.7 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 python-minimal : Depends: python2.7-minimal (>= 2.7.12-1~) but it is not going to be installed
                  Recommends: python but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)
本人之前并没怎么接触过 ubuntu系统。问题错误也看不懂 求帮忙指点一下 )>.<(
  • 写回答

2条回答 默认 最新

  • 官方提示: 2022-01-28 11:01
    关注

    提示在 -get 后 加上 -f 你试试呗 apt -get -f 百度上也有解释

    评论

报告相同问题?

问题事件

  • 修改了问题 1月28日
  • 修改了问题 1月28日
  • 修改了问题 1月28日
  • 创建了问题 1月28日

悬赏问题

  • ¥15 x264库中预测模式字IPM、运动向量差MVD、量化后的DCT系数的位置
  • ¥15 curl 命令调用正常,程序调用报 java.net.ConnectException: connection refused
  • ¥20 关于web前端如何播放二次加密m3u8视频的问题
  • ¥15 使用百度地图api 位置函数报错?
  • ¥15 metamask如何添加TRON自定义网络
  • ¥66 关于川崎机器人调速问题
  • ¥15 winFrom界面无法打开
  • ¥30 crossover21 ARM64版本安装软件问题
  • ¥15 mymetaobjecthandler没有进入
  • ¥15 mmo能不能做客户端怪物