因依赖而无法升级R.

时间:2017-09-05 12:36:12

标签: r linux upgrade sudo apt

我想将R(版本3.0.2)升级到像3.4.1这样的新版本,但我面临一个复杂的依赖问题,这使我无法做到这一点。

我使用多种解决方案在终端上键入了许多代码,但我没有成功,您可以在下面看到我尝试升级它和警告消息:

    sudo apt-get install r-base
    The following information may help to resolve the situation:
    The following packages have unmet dependencies:
    r-base : Depends: r-base-core (>= 3.4.1-2xenial0) but 3.0.2-1ubuntu1   is to be installed
    Depends: r-recommended (= 3.4.1-2xenial0) but 3.0.2-1ubuntu1 is to  be installed

我按照link的所有步骤进行了操作,但它没有用,结果是:

 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
 sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'
 sudo apt-get update

在上一个代码之后我收到了以下消息:

 W: Some index files failed to download. They have been ignored, or old ones used instead.

之后,我按照此linklink上的步骤进行操作: 当我运行sudo apt-get -f install我得到

  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done

当我运行sudo apt-get upgrade时,我得到:

  262 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
  Need to get 4,171 kB/710 MB of archives.

  Err http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/ trusty- updates/main udev amd64 204-5ubuntu20.20
  404  Not Found [IP: 213.32.5.7 80]
  Err http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/ trusty-updates/main libudev1 amd64 204-5ubuntu20.20
  404  Not Found [IP: 213.32.5.7 80]
  Err http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/ trusty-  updates/main libpam-systemd amd64 204-5ubuntu20.20
  404  Not Found [IP: 213.32.5.7 80]
  Err http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/ trusty-updates/main systemd-services amd64 204-5ubuntu20.20
  404  Not Found [IP: 213.32.5.7 80]
  Err http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_14.10/  owncloud-client-l10n 2.2.4-10.1
  404  Not Found [IP: 195.135.221.134 80]
  Err http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/ trusty-updates/main libsystemd-daemon0 amd64 204-5ubuntu20.20
  404  Not Found [IP: 213.32.5.7 80]
  Err http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/ trusty-updates/main libsystemd-login0 amd64 204-5ubuntu20.20
  404  Not Found [IP: 213.32.5.7 80]
  Err http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_14.10/  owncloud-client 2.2.4-10.1
  404  Not Found [IP: 195.135.221.134 80]
  Err http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_14.10/  libowncloudsync0 2.2.4-10.1
  404  Not Found [IP: 195.135.221.134 80]
  Err http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/ trusty-updates/main libgudev-1.0-0 amd64 1:204-5ubuntu20.20
  404  Not Found [IP: 213.32.5.7 80]
  Err http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/ trusty-updates/main  libsystemd-journal0 amd64 204-5ubuntu20.20
  404  Not Found [IP: 213.32.5.7 80]
  Err http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/ trusty-updates/main isc-dhcp-client amd64 4.2.4-7ubuntu12.8
  404  Not Found [IP: 213.32.5.7 80]
  Err http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/ trusty-  updates/main isc-dhcp-common amd64 4.2.4-7ubuntu12.8
  404  Not Found [IP: 213.32.5.7 80]
  Err http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/ trusty-updates/main initramfs-tools all 0.103ubuntu4.5
  404  Not Found [IP: 213.32.5.7 80]
  Err http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/ trusty-updates/main initramfs-tools-bin amd64 0.103ubuntu4.5
  404  Not Found [IP: 213.32.5.7 80]
  Err http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/ trusty-updates/main gir1.2-gudev-1.0 amd64 1:204-5ubuntu20.20
  404  Not Found [IP: 213.32.5.7 80]
  E: Failed to fetch http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/pool/main/s/systemd/udev_204-5ubuntu20.20_amd64.deb  404  Not Found [IP: 213.32.5.7 80]

  E: Failed to fetch http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/pool/main/s/systemd/libudev1_204-5ubuntu20.20_amd64.deb  404  Not Found [IP: 213.32.5.7 80]

  E: Failed to fetch http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/pool/main/s/systemd/libpam-systemd_204-5ubuntu20.20_amd64.deb  404  Not Found [IP: 213.32.5.7 80]

  E: Failed to fetch http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/pool/main/s/systemd/systemd-services_204-5ubuntu20.20_amd64.deb  404  Not Found [IP: 213.32.5.7 80]

   E: Failed to fetch http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/pool/main/s/systemd/libsystemd-daemon0_204-5ubuntu20.20_amd64.deb  404  Not Found [IP: 213.32.5.7 80]

  E: Failed to fetch http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/pool/main/s/systemd/libsystemd-login0_204-5ubuntu20.20_amd64.deb  404  Not Found [IP: 213.32.5.7 80]

  E: Failed to fetch http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/pool/main/s/systemd/libgudev-1.0-0_204-5ubuntu20.20_amd64.deb  404  Not Found [IP: 213.32.5.7 80]

 E: Failed to fetch http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_14.10/./all/owncloud-client-l10n_2.2.4-10.1_all.deb  404  Not Found [IP: 195.135.221.134 80]

 E: Failed to fetch http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_14.10/./amd64/owncloud-client_2.2.4-10.1_amd64.deb  404  Not Found [IP: 195.135.221.134 80]

 E: Failed to fetch http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_14.10/./amd64/libowncloudsync0_2.2.4-10.1_amd64.deb  404  Not Found [IP: 195.135.221.134 80]

 E: Failed to fetch http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/pool/main/s/systemd/libsystemd-journal0_204-5ubuntu20.20_amd64.deb  404  Not Found [IP: 213.32.5.7 80]

 E: Failed to fetch http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/pool/main/i/isc-dhcp/isc-dhcp-client_4.2.4-7ubuntu12.8_amd64.deb  404  Not Found [IP: 213.32.5.7 80]

 E: Failed to fetch http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/pool/main/i/isc-dhcp/isc-dhcp-common_4.2.4-7ubuntu12.8_amd64.deb  404  Not Found [IP: 213.32.5.7 80]

 E: Failed to fetch http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/pool/main/i/initramfs-tools/initramfs-tools_0.103ubuntu4.5_all.deb  404  Not Found [IP: 213.32.5.7 80]

 E: Failed to fetch http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/pool/main/i/initramfs-tools/initramfs-tools-bin_0.103ubuntu4.5_amd64.deb  404  Not Found [IP: 213.32.5.7 80]

 E: Failed to fetch http://ubuntu.mirrors.ovh.net/ftp.ubuntu.com/ubuntu/pool/main/s/systemd/gir1.2-gudev-1.0_204-5ubuntu20.20_amd64.deb  404  Not Found [IP: 213.32.5.7 80]

 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


  0 upgraded, 0 newly installed, 0 to remove and 279 not upgraded

任何形式的帮助将不胜感激

非常感谢提前

P.S:很抱歉我的Linux技能很差但我正在尝试!!

1 个答案:

答案 0 :(得分:1)

而不仅仅是

apt

增加命令以包含sudo apt-get install r-base r-base-core 发出信号冲突的包:

mylist = [2, 10, 5]

可能必须在这里添加更多。这主要是因为您使用添加的回购进行部分升级,这里来自CRAN。

但是我们中的许多人都使用这些CRAN附加组件,这应该可行(虽然我更喜欢更新的Ubuntu版本,但这是一个不同的故事)。