与上面的注释相反,我还没有找到我的问题的答案。
我已经阅读了近十二个 apt-get 更新问题,其中大部分来自 askubuntu.com,其中包含“无法获取”错误,并尝试了在那里回答的解决方案。不幸的是,没有一个奏效。我最近在笔记本电脑上安装了 Ubuntu 12.04,与 Windows 7 一起双启动。当我尝试时
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
在终端上,以下不断发生:
Err http://ph.archive.ubuntu.com precise InRelease
Err http://ph.archive.ubuntu.com precise-updates InRelease
Err http://ph.archive.ubuntu.com precise-backports InRelease
Err http://ph.archive.ubuntu.com precise Release.gpg
Unable to connect to ph.archive.ubuntu.com:http: [IP: 91.189.92.177 80]
Err http://ph.archive.ubuntu.com precise-updates Release.gpg
Unable to connect to ph.archive.ubuntu.com:http: [IP: 91.189.92.177 80]
Err http://ph.archive.ubuntu.com precise-backports Release.gpg
Unable to connect to ph.archive.ubuntu.com:http: [IP: 91.189.92.177 80]
Err http://extras.ubuntu.com precise InRelease
Err http://extras.ubuntu.com precise Release.gpg
Unable to connect to extras.ubuntu.com:http:
Err http://security.ubuntu.com precise-security InRelease
Err …Run Code Online (Sandbox Code Playgroud) 我想知道是否有办法从启动菜单切换到控制台模式。我有一个 NVIDIA 1070,每次有更新时,GUI 都会停止工作。我需要做的就是重新安装驱动程序;但是,要做到这一点,我需要处于控制台模式。
编辑:我应该为这个问题添加更多信息,但我会对所有答案发表评论。简而言之:我尝试过text而不是quiet splash在文本模式下看到启动活动;但是,我没有看到登录屏幕并且ctrl + Alt + F1没有帮助,因为 GDM 一直在尝试重新启动。以前,我通过多次尝试成功杀死了 GDM,但自最新更新以来无法正常工作。
编辑:搜索运行级别后,我发现如何更改 systemd 上的运行级别?但我认为这需要我有一个正在运行的系统来进行更改——如果我错了,请纠正我。
我在 Windows 7 主机上的 VirtualBox 4.2.6 中运行 Ubuntu 12.04。安装 Ubuntu 后,我想全屏显示 VB 界面。因此,我从 Virtual Box Manager安装了来宾添加项(设备 > 安装来宾添加项 -> 运行 --> 重启)。
但是启动后我只能看到没有菜单的桌面的一部分。此外,每次重新启动后,我再次被要求安装来宾添加(即使我已将其删除,来宾添加 CD 仍会重新出现)。
通过右键单击>外观->所有设置(因为我只能看到桌面的一部分)在系统设置中编辑分辨率,实际分辨率发生了变化,但整个桌面仍然不适合。
我是否必须卸载/重新安装来宾添加?我还有什么其他选择?
我刚刚按照此说明安装了带有适用于 Linux 的 Windows 子系统的 Ubuntu 22.04 。
\n当我运行时sudo apt install update,我收到以下错误:
Ign:1 http://security.ubuntu.com/ubuntu jammy-security InRelease\nIgn:2 http://archive.ubuntu.com/ubuntu jammy InRelease\nIgn:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\nIgn:1 http://security.ubuntu.com/ubuntu jammy-security InRelease\nIgn:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\nIgn:1 http://security.ubuntu.com/ubuntu jammy-security InRelease\nIgn:2 http://archive.ubuntu.com/ubuntu jammy InRelease\nErr:1 http://security.ubuntu.com/ubuntu jammy-security InRelease\n Temporary failure resolving \'security.ubuntu.com\'\nIgn:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\nIgn:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\nIgn:2 http://archive.ubuntu.com/ubuntu jammy InRelease\nIgn:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\nIgn:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\nErr:2 http://archive.ubuntu.com/ubuntu jammy InRelease\n Temporary failure resolving \'archive.ubuntu.com\'\nErr:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\n Temporary failure resolving \'archive.ubuntu.com\'\nErr:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\n Temporary failure …Run Code Online (Sandbox Code Playgroud) 我刚刚安装了我的第一个 Ubuntu Server (12.04) 实例,并立即遇到了以下问题:
apt-get install或update失败(见下文)ifconfig会产生特殊的 IP 地址10.x.x.x,我的路由器在其“附加设备”页面(它是消费级 Netgear)中根本看不到服务器当我运行时,apt-get我收到 50 多个以下错误:
Failed to fetch <some-http-url>. Temporary failure resolving <blah>.ubuntu.com
Run Code Online (Sandbox Code Playgroud)
我阅读了 12.04 的这个错误,并在这个论坛和服务器故障上发现了一些类似的帖子,建议进入/etc/resolv.conf并添加一个条目:
nameserver 8.8.8.8
Run Code Online (Sandbox Code Playgroud)
令我惊讶的是,我发现这/etc/resolv.conf是一个指向其他地方的符号链接,我必须先删除它,然后用上面指示的条目创建一个新的。
我重新启动了服务器并apt-get再次尝试运行,结果相同。
我如何开始诊断问题(我是一个相对较新的 Linux/Ubuntu 用户)?
可能有帮助的其他详细信息:
在此先感谢您的指点!
编辑:
这是我的虚拟机网络设置的快照(只有适配器 1 有任何信息填充其字段,所以我假设我的虚拟机只有 1 个适配器):

这是我ifconfig从终端运行时的输出:

这是我route从终端运行时的输出:

运行ping google.com:

我知道这之前已经涵盖过,但我似乎无法解决我的问题。这是我的输出。
jake@KUBIE-SERVER:~$ sudo apt-get update
Err http://us.archive.ubuntu.com precise InRelease
Err http://us.archive.ubuntu.com precise-updates InRelease
Err http://us.archive.ubuntu.com precise-backports InRelease
Err http://security.ubuntu.com precise-security InRelease
Err http://archive.canonical.com precise InRelease
Err http://ppa.launchpad.net precise InRelease
Err http://archive.canonical.com precise Release.gpg
Temporary failure resolving 'archive.canonical.com'
Err http://ppa.launchpad.net precise Release.gpg
Temporary failure resolving 'ppa.launchpad.net'
Err http://security.ubuntu.com precise-security Release.gpg
Temporary failure resolving 'security.ubuntu.com'
Err http://us.archive.ubuntu.com precise Release.gpg
Temporary failure resolving 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com precise-updates Release.gpg
Temporary failure resolving 'us.archive.ubuntu.com'
Err http://us.archive.ubuntu.com precise-backports Release.gpg
Temporary failure resolving 'us.archive.ubuntu.com' …Run Code Online (Sandbox Code Playgroud) 我一直面临着进入我的 Ubuntu 桌面的可怕问题。我发布了几个问题并得到了一些建议。为了跟踪,让我写下我经历的所有过程: 首先,我有一台 MSI 游戏笔记本电脑:Intel(R) Core i7-6820HK CPU 2.7GHz、16GB RAM、Windows 10、64x、NVIDIA GeForce GTX 980M。
大约两周前,我将 Ubuntu 16.04 与 Win 10 一起安装为双启动。 我在安装过程中遇到的障碍是:
有一个空白的紫色屏幕:为了解决它,我设置nomodeset并继续......
没有选项“在 Windows 10 旁边安装 Ubuntu”,我按照本网站的建议选择了其他内容......
它指示我对磁盘进行分区。盒子里没有windows 加载器,只有一些值,比如:
free space 1 MB;
/dev/sda1/ntfs with the 528345 MB 87947 MB used;
/dev/sda2/ntfs with the 429495 MB 150 MB used;
free space 1 MB;
/dev/sda3 with the 21474 MB unknown;
free space 0 MB;
/dev/sda4 ntfs with the 20885 20100 MB used;
free …Run Code Online (Sandbox Code Playgroud)全新安装 Ubuntu 16.04 服务器 tty1
26 packages can be updated
12 updates are security updates.
Run Code Online (Sandbox Code Playgroud)
当我尝试使用时sudo apt-get update,会出现:
Err:1 http://ro.archive.ubuntu.com/ubuntu xenial InRelease
temporary failure resolving 'ro.archive.ubuntu.com'
Err:2 http://ro.archive.ubuntu.com/ubuntu xenial-security InRelease
temporary failure resolving 'ro.archive.ubuntu.com'
Err:3 ... xenial-updates InRelease
temporary failure resolving 'ro.archive.ubuntu.com'
Err:4... xenial-backports InRelease
temporary failure resolving 'ro.archive.ubuntu.com'
Failed to fetch http://ro.archive.ubuntu.com/ubuntu xenial InRelease
temporary failure resolving 'ro.archive.ubuntu.com'
failed to fetch ....
...
some index failed to download. They gave been ignored,or old ones used instead.
Run Code Online (Sandbox Code Playgroud)
我跑了 …
首先,我是 Linux 命令行的新手。我以前从未使用过它。我的问题是该命令apt-get update只会返回:
Err:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Temporary failure resolving 'us.archive.ubuntu.com'
Err:2 http://us.archive.ubuntu.com/ubuntu xenial-security InRelease
Temporary failure resolving 'us.archive.ubuntu.com'
Err:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Temporary failure resolving 'us.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'us.archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)
我的sources.list文件看起来像这样: …
主要问题是:
# systemctl status systemd-resolved.service
systemd-resolved.service -
Network Name Resolution Loaded: loaded (/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: enabled)
Active: failed (Result: resources) since Wed 2021-05-19 11:15:15 UTC; 23s ago
Docs: man:systemd-resolved.service(8)
https://www.freedesktop.org/wiki/Software/systemd/resolved
https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
May 19 11:15:15 kv-server systemd[1]: systemd-resolved.service: Service has no hold-off time, scheduling restart.
May 19 11:15:15 kv-server systemd[1]: systemd-resolved.service: Scheduled restart job, restart counter is at 5.
May 19 11:15:15 kv-server systemd[1]: Stopped Network Name Resolution.
May 19 11:15:15 kv-server systemd[1]: systemd-resolved.service: Start request repeated too quickly. …Run Code Online (Sandbox Code Playgroud) apt ×5
server ×3
12.04 ×2
16.04 ×2
nvidia ×2
systemd ×2
virtualbox ×2
22.04 ×1
boot ×1
dns ×1
dual-boot ×1
fullscreen ×1
lts ×1
networking ×1
partitioning ×1
ping ×1
services ×1
updates ×1
upstart ×1
windows-subsystem-for-linux ×1
wireless ×1