相关疑难解决方法(0)

双启动时时钟时间关闭

双启动系统 Windows XP Pro 和 Ubuntu 12.04。

我将 bios 设置为正确的时间,将 Ubuntu 设置为美国东部时间。Ubuntu 将启动,时间将减少 -4 小时。如果我在 Ubuntu 中更正时间,那么当我在 Windows XP 中启动时,时间将减少 + 4 小时。

这是 12.04 的全新安装。在重新安装 Ubuntu 之前我没有这个问题。

dual-boot windows timezone

369
推荐指数
4
解决办法
36万
查看次数

更新 ubuntu docker 容器时获取“版本尚未生效”

我正在尝试使用 dockerfile 更新 ubuntu 容器。

RUN apt-get update -y
Run Code Online (Sandbox Code Playgroud)

但我收到以下错误。

E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 9h 14min 10s). Updates for this repository will not be applied.
E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 9h 14min 16s). Updates for this repository will not be applied.
E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease is not valid yet (invalid for another 9h 14min 35s). Updates for this repository will not be applied.
Run Code Online (Sandbox Code Playgroud)

我检查了相同问题的其他一些解决方案,例如添加 …

package-management

39
推荐指数
7
解决办法
5万
查看次数

Ubuntu 16.4 LTS 找不到 openjdk-8-jdk

上周我不得不重建一个 docker 容器,作为 16.04 容器创建的一部分,它执行了一个apt-get install openjdk-8-jdk失败并出现 404 错误。

切换到apt-get install default-jdk尝试拉取相同的包,同样失败并显示 404 错误。见下文。按照正常做法,我apt-get update在尝试之前先运行。

Get:168 http://archive.ubuntu.com/ubuntu xenial/main amd64 libxi6 amd64 2:1.7.6-1 [28.6 kB]
Get:169 http://archive.ubuntu.com/ubuntu xenial/main amd64 libxrender1 amd64 1:0.9.9-0ubuntu1 [18.5 kB]
Err:170 http://security.ubuntu.com/ubuntu xenial-security/main amd64 openjdk-8-jre-headless amd64 8u151-b12-0ubuntu0.16.04.2
  404  Not Found [IP: 91.189.88.162 80]
Get:171 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ca-certificates-java all 20160321ubuntu1 [12.5 kB]
Err:170 http://security.ubuntu.com/ubuntu xenial-security/main amd64 openjdk-8-jre-headless amd64 8u151-b12-0ubuntu0.16.04.2
  404  Not Found [IP: 91.189.88.162 80]
Run Code Online (Sandbox Code Playgroud)

16.04 repos 是不是突然变得不稳定了?

非常感谢!

apt jdk 16.04

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

http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease 的发布文件尚未生效

我正在使用 Ansible 从主服务器在我的 Slave1 服务器上安装 Nginx 包(注意 - 主服务器和从服务器都有 Ubuntu 18.04,我在 Docker 容器中运行这些),但每次我运行 Ansible 命令来执行此操作时,低于错误。我被困在这里,有什么解决方案。请帮我调试这个问题。

root@afb19093484e:/# ansible Slave1 -m apt -a "name=nginx state=present"


172.17.0.3 | FAILED! => {
    "changed": false, 
    "cmd": "apt-get update", 
    "msg": "E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 3d 21h 33min 13s). Updates for this repository will not be applied.\nE: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 3d 23h 23min 36s). Updates for this repository will not be …
Run Code Online (Sandbox Code Playgroud)

apt docker 18.04

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

无法更新或升级 Ubuntu。什么都没有(没有新包,什么都没有)

我无法安装任何新软件包,甚至无法从 Ubuntu 18.04 升级。就像 VM 被困在 Ubuntu 18.04 刚刚问世的旧时代。没有可用的新软件包或任何东西。有些东西肯定搞砸了,我不知道如何解决这个问题。

[root:7e2d33988106:/]# lsb_release -a                                                                                                                                                                                                                                   12:55PM/09.12
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:        18.04
Codename:       bionic

[root:7e2d33988106:/]# cat /etc/apt/sources.list | grep -v "#" | sort -u                                                                                                                                                                                                12:55PM/09.12

deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted
deb http://security.ubuntu.com/ubuntu/ …
Run Code Online (Sandbox Code Playgroud)

upgrade updates package-management apt

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