由于依赖关系无法升级 R
Can't upgrade R because of dependency
我想将 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.
之后,我按照 link and this link 上的步骤操作:
当我 运行 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 的技能很差,但我正在努力!!
而不只是
sudo apt-get install r-base
增加命令以包含 apt
发出冲突信号的包:
sudo apt-get install r-base r-base-core
你可能还要在这里补充几个。这主要是由于您使用来自 CRAN 的添加回购进行了部分升级。
但我们中的许多人都使用这些 CRAN 附加组件,这应该有效(尽管我更喜欢更新的 Ubuntu 版本,但这是另一回事)。
我想将 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.
之后,我按照 link and this link 上的步骤操作: 当我 运行 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 的技能很差,但我正在努力!!
而不只是
sudo apt-get install r-base
增加命令以包含 apt
发出冲突信号的包:
sudo apt-get install r-base r-base-core
你可能还要在这里补充几个。这主要是由于您使用来自 CRAN 的添加回购进行了部分升级。
但我们中的许多人都使用这些 CRAN 附加组件,这应该有效(尽管我更喜欢更新的 Ubuntu 版本,但这是另一回事)。