r-base-core: Depende: falha libpng12-0

1

Não consigo instalar o R-base-core porque a libpng12-0 não pode ser instalada. tentando instalar apenas libpng12-0 eu recebo %código% Eu vi um número de posts sobre como adicionar repos diferentes, mas todos eles não fizeram nada ou deram Package 'libpng12-0' has no installation candidate

aqui está a falha completa:

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.

chamando uname -a dá   Updating from such a repository can't be done securely, and is therefore disabled by default

executando este comando: 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

#

# 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/

Passei um bom tempo tentando instalar o R hoje à noite.

    
por Samuel Thompson 11.01.2018 / 09:46

1 resposta

0

Você deve baixar o repositório de R para a sua versão do Ubuntu, ou seja, Artful e não xenial. Primeiro tente baixar e instalar o libpng12-0 como em E: O pacote 'libpng12-0' não tem um candidato de instalação [ubuntu 16.10 Gnome] .

Em seguida, o r-base-core dessa versão deve ser baseado no libreadline6, que não está mais disponível. Assim, baixe a versão do ubuntu artful e remova as seguintes linhas de sources.list

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/
    
por s.dallapalma 14.05.2018 / 12:05