ubuntu 执行apt-get install ruby 不能正常install

来源:互联网 发布:电影票房数据 编辑:程序博客网 时间:2024/06/10 02:36

如遇到如下问题:

Reading package lists... DoneBuilding dependency tree       Reading state information... DoneYou might want to run 'apt-get -f install' to correct these:The following packages have unmet dependencies:  git : Depends: liberror-perl but it is not going to be installed        Depends: git-man (> 1:2.7.4) but it is not going to be installed        Depends: git-man (< 1:2.7.4-.) but it is not going to be installedE: Unmet dependencies. Try 'apt-get -f install' with no packages (orspecify a solution).

可尝试:

sudo apt-get update --> update package informatiosudo apt-get dist-upgrade --> upgrade packages on systemsudo apt-get -f install --> fix broken packages

然后

sudo apt-get install ruby 一般就可以了
原创粉丝点击