我已经在 Windows 上的 Ubuntu 上安装了 Bash(在设置中启用该功能后)
我不记得我做了什么,但结果是apt-get
没有找到任何包
有和没有sudo
:
$ apt-get install <package>
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package <package>
Run Code Online (Sandbox Code Playgroud)
我尝试了在此站点上找到的许多修复程序,例如:
apt-get upgrade
& apt-get update
&我尝试重新创建resources.list
使用nano
这怎么能解决?
前段时间我升级到 RC,sources.list 有点搞砸了,这意味着我在更新时收到了很多 404。有人可以发布 Maverick 的原始 sources.list 吗?
我注意到
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
花费的时间越来越长,因为我用了几个
sudo apt-add-repository xxx
Run Code Online (Sandbox Code Playgroud)
似乎非 ubuntu 存储库没有默认存储库那么快或没有那么多带宽。
如何将存储库重置为默认存储库,删除我添加的所有存储库?(不用担心,如果需要它们中的任何一个,我可以稍后添加它们)
简史:出于各种原因,我从带有Gnome 2.0 的Ubuntu桌面过渡到Ubuntu XFCE(从 Gnome 3 生病),然后到Cinnamon桌面环境,不知何故将我推入了Linux Mint世界。然后我得到了Mate 桌面,这似乎是我暂时需要的。事实证明,只有Linux Mint才是我想要摆脱的。
现在的挑战是我有一个开发环境。虽然我确实保留了备份,但我想在不完全重新安装和恢复的情况下过渡到 Ubuntu。
在普通Ubuntu和例如Xubuntu之间的切换看起来很简单——只需切换 apt 源集并让 apt 做生意。但是Linux Mint有更多的钩子用于 URL 和路径的“计算”。所以这该死的事情不让我回去,或者至少我是这么认为的。我试图找到现有的howto无济于事。
任何个人经验都会很棒,但我需要的是一组描述要做什么的步骤,至少是关于陷阱的最少指导以及(可选)一些关于 apt 幕后更改的提示,这些提示不会让我离开现在。
我真的很难在 Ubuntu 18 上安装 R。这是我第一次使用操作系统......我尝试在网站上查找其他问题但没有运气,即使在这基本上是我的问题:依赖错误而在 Ubuntu 17.10 中安装 R
无论如何,我尝试运行sudo apt install r-base
,响应是:
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 …
Run Code Online (Sandbox Code Playgroud) Where can I find the default content of /etc/apt/sources.list in Ubuntu 18.04 LTS (Bionic Beaver)
cat /etc/apt/sources.list
shows
# deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://in.archive.ubuntu.com/ubuntu/ bionic main restricted universe deb-src http://in.archive.ubuntu.com/ubuntu/ bionic multiverse restricted universe main #Added by software-properties # deb-src http://in.archive.ubuntu.com/ubuntu/ xenial main restricted ## Major bug fix updates produced after the final release of the …
我执行了命令:
$ sudo apt-get install ssh-import-id
Run Code Online (Sandbox Code Playgroud)
输出是(因为评论中的人要求完全提供它):
$ sudo apt-get install ssh-import-id
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gdbserver gstreamer1.0-gtk3 libabw-0.1-1 libatkmm-1.6-1v5 libbabeltrace1 libc6-dbg libcairomm-1.0-1v5 libcdr-0.1-1
libcolamd2 libdw1 libe-book-0.1-1 libepubgen-0.1-1 libetonyek-0.1-1 libfreehand-0.1-1 libglibmm-2.4-1v5 libgtkmm-2.4-1v5
libilmbase12 libmspub-0.1-1 libmwaw-0.3-3 libnuma1 libodfgen-0.1-1 libopenexr22 libpangomm-1.4-1v5 libsuitesparseconfig5
libvisio-0.1-1 libwpd-0.10-10 libwpg-0.3-3 libwps-0.4-4 libxss1 libxvmc1 lp-solve vim-common x11-apps x11-session-utils
xbitmaps xinit xserver-xorg-video-amdgpu-hwe-18.04 xserver-xorg-video-ati-hwe-18.04 xserver-xorg-video-fbdev-hwe-18.04
xserver-xorg-video-intel-hwe-18.04 xserver-xorg-video-nouveau-hwe-18.04 xserver-xorg-video-qxl-hwe-18.04
xserver-xorg-video-radeon-hwe-18.04 xserver-xorg-video-vesa-hwe-18.04 xxd
Use …
Run Code Online (Sandbox Code Playgroud) 我已经使用 Ubuntu 一段时间了,我遇到了所有问题,我不需要发布一个线程来获取答案,直到我最近升级到 Ubuntu Vivid。
Ubuntu 很棒,但每次运行时sudo apt-get update
我都会平稳运行更新,它会返回/var/lib/apt/lists
.
这甚至不是问题所在。非常令人沮丧的是,即使我运行建议的更新,它仍然产生相同的结果。
我使用的是 Ubuntu 14.04,然后在升级到 Vivid 之前升级到 Ubuntu Utopic。
我所需要的只是请提供一份没有重复源列表的契约。
请。
谢谢大家。
编辑:这是我从重新加载软件属性-gtk 中得到的新错误。
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ vivid-security/restricted i386 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_vivid-security_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ vivid-security/universe i386 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_vivid-security_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ vivid-security/multiverse i386 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_vivid-security_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com/ubuntu/ vivid-security/main i386 Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_vivid-security_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
Run Code Online (Sandbox Code Playgroud) 我在 Ubuntu 16.04 服务器上运行“sudo apt -y update”,但出现以下错误:
# apt -y update
Reading package lists... Done
E: The repository 'http://us.archive.ubuntu.com/ubuntu saucy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu saucy-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled …
Run Code Online (Sandbox Code Playgroud) 我正在尝试在 Ubuntu 18.04 机器上安装 R,但遇到了“未满足的依赖项”问题。但是,我无法确定我可以去哪里或者我需要在我的系统上修复什么来克服这个问题。任何帮助将不胜感激。
我正在运行 Ubuntu 18.04.2 LTS(带有 16Gb RAM 和 500Gb 硬盘),仅使用标准bionic
存储库;我添加的唯一 PPA 是用于 libreoffice 的。看到那里的东西后,输出到sudo apt update
IS
Ign:1 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Get:7 https://desktop-download.mendeley.com/download/apt stable InRelease [2,456 B]
Get:8 https://typora.io/linux ./ InRelease [758 B]
Hit:9 http://repository.spotify.com stable InRelease
Hit:10 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ InRelease
Hit:11 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic InRelease
Hit:12 http://sg.archive.ubuntu.com/ubuntu bionic InRelease
Hit:13 http://sg.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:14 http://sg.archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Fetched 91.9 …
Run Code Online (Sandbox Code Playgroud)