首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >R基核心:依赖:libpng12 12-0失败

问R基核心:依赖:libpng12 12-0失败
EN

Ask Ubuntu用户
提问于 2018-01-11 08:46:32
回答 1查看 1.4K关注 0票数 3

我不能安装R基核心,因为libpng12-0不能安装.试着安装libpng12 12-0

代码语言:javascript
复制
Package 'libpng12-0' has no installation candidate

我已经看过很多关于添加不同回复的文章,但是他们要么什么也不做,要么给了Updating from such a repository can't be done securely, and is therefore disabled by default。

以下是完全失败的原因:

代码语言:javascript
复制
The following packages have unmet dependencies:
 r-base-core : Depends: libpng12-0 (>= 1.2.13-4) but it is not installable
               Recommends: r-recommended but it is not going to be installed
               Recommends: r-base-dev but it is not going to be installed
               Recommends: r-doc-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

调用uname -a给4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

运行以下命令:cat /etc/apt/sources.list

代码语言:javascript
复制
#

# deb cdrom:[Ubuntu-Server 17.10 _Artful Aardvark_ - Release amd64 (20171017.1)]/ artful main restricted

# deb cdrom:[Ubuntu-Server 17.10 _Artful Aardvark_ - Release amd64 (20171017.1)]/ artful main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ artful main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ artful-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ artful universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful universe
deb http://us.archive.ubuntu.com/ubuntu/ artful-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ artful multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful multiverse
deb http://us.archive.ubuntu.com/ubuntu/ artful-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu artful partner
# deb-src http://archive.canonical.com/ubuntu artful partner

deb http://security.ubuntu.com/ubuntu artful-security main restricted
# deb-src http://security.ubuntu.com/ubuntu artful-security main restricted
deb http://security.ubuntu.com/ubuntu artful-security universe
# deb-src http://security.ubuntu.com/ubuntu artful-security universe
deb http://security.ubuntu.com/ubuntu artful-security multiverse
# deb-src http://security.ubuntu.com/ubuntu artful-security multiverse
deb http://cran.rstudio.com/bin/linux/ubuntu xenial/
deb https://mirror.ibcp.fr/pub/CRAN/bin/linux/ubuntu xenial/
# deb-src https://mirror.ibcp.fr/pub/CRAN/bin/linux/ubuntu xenial/

今晚我花了很多时间试图安装R。

EN

回答 1

Ask Ubuntu用户

发布于 2018-05-14 10:05:44

您应该为您的版本ubuntu下载R的存储库,即巧妙的而不是异种的。首先,尝试下载并安装libpng12-0,就像在E:‘libpng12-0’包没有安装候选[ubuntu16.10Gnome]中一样。

然后,该版本的r基核心应该基于libreadline6,这是不可用的。因此,下载ubuntu的版本,并从sources.list中删除以下行

代码语言:javascript
复制
deb http://cran.rstudio.com/bin/linux/ubuntu xenial/
deb https://mirror.ibcp.fr/pub/CRAN/bin/linux/ubuntu xenial/
# deb-src https://mirror.ibcp.fr/pub/CRAN/bin/linux/ubuntu xenial/
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/994635

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档