相关疑难解决方法(0)

运行 apt-get update 时会出现“无法获取”错误。我该如何解决?

与上面的注释相反,我还没有找到我的问题的答案。

我已经阅读了近十二个 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)

updates software-sources ping 12.04

49
推荐指数
3
解决办法
41万
查看次数

如何在控制台模式下启动 Ubuntu

我想知道是否有办法从启动菜单切换到控制台模式。我有一个 NVIDIA 1070,每次有更新时,GUI 都会停止工作。我需要做的就是重新安装驱动程序;但是,要做到这一点,我需要处于控制台模式。

编辑:我应该为这个问题添加更多信息,但我会对所有答案发表评论。简而言之:我尝试过text而不是quiet splash在文本模式下看到启动活动;但是,我没有看到登录屏幕并且ctrl + Alt + F1没有帮助,因为 GDM 一直在尝试重新启动。以前,我通过多次尝试成功杀死了 GDM,但自最新更新以来无法正常工作。

编辑:搜索运行级别后,我发现如何更改 systemd 上的运行级别?但我认为这需要我有一个正在运行的系统来进行更改——如果我错了,请纠正我。

boot nvidia 16.04

49
推荐指数
3
解决办法
34万
查看次数

如何在 Virtual Box 全屏模式下显示整个桌面?

我在 Windows 7 主机上的 VirtualBox 4.2.6 中运行 Ubuntu 12.04。安装 Ubuntu 后,我想全屏显示 VB 界面。因此,我从 Virtual Box Manager安装了来宾添加项(设备 > 安装来宾添加项 -> 运行 --> 重启)。

但是启动后我只能看到没有菜单的桌面的一部分。此外,每次重新启动后,我再次被要求安装来宾添加(即使我已将其删除,来宾添加 CD 仍会重新出现)。

通过右键单击>外观->所有设置(因为我只能看到桌面的一部分)在系统设置中编辑分辨率,实际分辨率发生了变化,但整个桌面仍然不适合。

我是否必须卸载/重新安装来宾添加?我还有什么其他选择?

virtualbox guest-session fullscreen guest-additions

24
推荐指数
1
解决办法
27万
查看次数

适用于 Linux 2 的 Windows 子系统:解决“archive.ubuntu.com”时出现临时故障

我刚刚按照此说明安装了带有适用于 Linux 的 Windows 子系统的 Ubuntu 22.04 。

\n

当我运行时sudo apt install update,我收到以下错误:

\n
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)

apt windows-subsystem-for-linux 22.04

15
推荐指数
0
解决办法
1万
查看次数

Virtualbox 中的无线网络

我刚刚安装了我的第一个 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 用户)?

可能有帮助的其他详细信息:

  • 这实际上是一个作为 VirtualBox 来宾操作系统运行的虚拟机
  • 运行这个虚拟机的物理主机是我的笔记本电脑,它有无线连接;我想知道笔记本电脑是否(以某种方式)无线连接网络,但也许 VBox VM 和/或 Ubuntu 服务器操作系统没有配置为无线网络,所以没有任何东西“通过”?

在此先感谢您的指点!

编辑:

这是我的虚拟机网络设置的快照(只有适配器 1 有任何信息填充其字段,所以我假设我的虚拟机只有 1 个适配器):

在此处输入图片说明

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

在此处输入图片说明

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

在此处输入图片说明

运行ping google.com:

在此处输入图片说明

server virtualbox wireless networking 12.04

13
推荐指数
1
解决办法
5万
查看次数

为什么apt-get无法解析镜像?

可能重复:
apt-get 更新无法获取文件,“临时失败解决……”错误

我知道这之前已经涵盖过,但我似乎无法解决我的问题。这是我的输出。

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)

server apt

11
推荐指数
2
解决办法
8万
查看次数

需要解决闪烁的屏幕

我一直面临着进入我的 Ubuntu 桌面的可怕问题。我发布了几个问题并得到了一些建议。为了跟踪,让我写下我经历的所有过程: 首先,我有一台 MSI 游戏笔记本电脑:Intel(R) Core i7-6820HK CPU 2.7GHz、16GB RAM、Windows 10、64x、NVIDIA GeForce GTX 980M。

大约两周前,我将 Ubuntu 16.04 与 Win 10 一起安装为双启动。 我在安装过程中遇到的障碍是:

  1. 有一个空白的紫色屏幕:为了解决它,我设置nomodeset并继续......

  2. 没有选项“在 Windows 10 旁边安装 Ubuntu”,我按照本网站的建议选择了其他内容......

  3. 它指示我对磁盘进行分区。盒子里没有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)

partitioning dual-boot nvidia

6
推荐指数
1
解决办法
2124
查看次数

Ubuntu 16.04 服务器更新 - 解决“ro.archive.ubuntu.com”的临时失败

全新安装 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)

我跑了 …

server lts apt 16.04

5
推荐指数
2
解决办法
3万
查看次数

Apt-get 更新在 Ubuntu 16.04“临时故障解决”中不起作用

首先,我是 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文件看起来像这样: …

apt

5
推荐指数
1
解决办法
9万
查看次数

无法启动 systemd-resolved.service 。systemd-resolved.service:失败,结果为“资源”。[1]:无法启动网络名称解析

主要问题是:

# 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)

dns services systemd systemd-resolved

4
推荐指数
1
解决办法
3万
查看次数

临时故障解决 ca.archive.ubuntu.com

我正在尝试运行,sudo apt-get install ubuntu-standard systemd-sysv但我不断收到错误消息:“解决‘ca.archive.ubuntu.com’的临时失败”。我尝试按照此处列出的步骤进行操作,但没有任何效果。有没有办法解决这个问题,或者至少可以在不访问 gui 的情况下下载这些包?我试图恢复到新贵,但这导致了启动错误,所以现在我只是试图从恢复模式返回 systemd,这样我就可以启动并过上我的生活。

对于任何格式问题,我深表歉意,我正在用手机打字

package-management apt upstart recovery-mode systemd

2
推荐指数
1
解决办法
3121
查看次数