我正试图在Ubuntu上安装R。我比较新,没有经验,所以可能犯了一个愚蠢的错误。我在运行Ubuntu 19.04
我正在使用apt:sudo apt-get install r-base安装R
当我运行这个程序时,我会得到以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
r-base : Depends: r-base-core (>= 3.6.3-1bionic) but it is not going to be installed
Depends: r-recommended (= 3.6.3-1bionic) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.我看过这个问题:如何在添加PPA之后解决未满足的依赖关系?寻求帮助。
我已经跑了
sudo apt-get updatesudo apt-get upgrade (升级0,新安装0,删除0,不升级0)。这些都没有问题。
然后我运行了sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade
对此的答复是:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) wine-stable:amd64 < 3.0.1ubuntu1 -> 5.0.0~disco @ii umU Ib >
Broken wine-stable:amd64 Depends on wine-stable-i386:amd64 < none @un H > (= 5.0.0~disco)
Considering wine-stable-i386:i386 0 as a solution to wine-stable:amd64 0
Holding Back wine-stable:amd64 rather than change wine-stable-i386:amd64
Try to Re-Instate (1) wine-stable:amd64
Done
Calculating upgrade... Done
The following packages have been kept back:
wine-stable
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.因此,我移除和重新安装葡萄酒稳定。当重新运行调试时,没有显示任何包。
我相信我的问题可能是由于我的PPA中的一些东西。我弄断了几个这个。
cat /etc/apt/sources.list的输出是:
# deb cdrom:[Ubuntu 19.04 _Disco Dingo_ - Release amd64 (20190416)]/ disco main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ disco main restricted
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ disco-updates main restricted
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco-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://gb.archive.ubuntu.com/ubuntu/ disco universe
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco universe
deb http://gb.archive.ubuntu.com/ubuntu/ disco-updates universe
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco-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://gb.archive.ubuntu.com/ubuntu/ disco multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ disco-updates multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco-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://gb.archive.ubuntu.com/ubuntu/ disco-backports main restricted universe multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ disco-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 disco partner
# deb-src http://archive.canonical.com/ubuntu disco partner
deb http://security.ubuntu.com/ubuntu disco-security main restricted
# deb-src http://security.ubuntu.com/ubuntu disco-security main restricted
deb http://security.ubuntu.com/ubuntu disco-security universe
# deb-src http://security.ubuntu.com/ubuntu disco-security universe
deb http://security.ubuntu.com/ubuntu disco-security multiverse
# deb-src http://security.ubuntu.com/ubuntu disco-security multiverse
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
# deb https://dl.winehq.org/wine-builds/ubuntu/ disco main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ disco main
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
# deb-src https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
# deb http://cran.rstudio.com/bin/linux/ubuntu disco/
# deb-src http://cran.rstudio.com/bin/linux/ubuntu disco/cat /etc/apt/sources.list.d/*的输出是:
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
# deb http://ppa.launchpad.net/jonathonf/gcc-7.1/ubuntu disco main
# deb http://ppa.launchpad.net/jonathonf/gcc-7.1/ubuntu disco main
deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu disco main
# deb-src http://ppa.launchpad.net/obsproject/obs-studio/ubuntu disco main
deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu disco main
# deb-src http://ppa.launchpad.net/obsproject/obs-studio/ubuntu disco main通过软件和更新->其他软件,我取消了几个项目,我可能帮助或恶化的东西:

我希望我包括了任何可能有帮助的东西。如果你需要更多细节请告诉我。
发布于 2020-03-24 19:52:35
这是一个简单的解决办法。仿生起重机35正试图运行,因为它是存在于source.list。这是之前一次拙劣的安装尝试。注释掉
deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ 代码中的行已经修复了这个问题。
仿生是从以前的Ubuntu发行版,并已取代迪斯科在19.04。
谢谢你@steeldriver指出我的缺点。
https://askubuntu.com/questions/1219839
复制相似问题