我安装了一些 Ubuntu Server 20.04,但仅其中之一会发生以下情况:
sudo apt update
... password
Hit:1 http://repo.mysql.com/apt/ubuntu groovy InRelease
Ign:2 http://pe.archive.ubuntu.com/ubuntu groovy InRelease
Ign:3 http://pe.archive.ubuntu.com/ubuntu groovy-updates InRelease
Hit:4 http://apt.postgresql.org/pub/repos/apt groovy-pgdg InRelease
Ign:5 http://pe.archive.ubuntu.com/ubuntu groovy-backports InRelease
Ign:6 http://pe.archive.ubuntu.com/ubuntu groovy-security InRelease
Err:7 http://pe.archive.ubuntu.com/ubuntu groovy Release
404 Not Found [IP: 200.236.31.4 80]
Err:8 http://pe.archive.ubuntu.com/ubuntu groovy-updates Release
404 Not Found [IP: 200.236.31.4 80]
Err:9 http://pe.archive.ubuntu.com/ubuntu groovy-backports Release
404 Not Found [IP: 200.236.31.4 80]
Err:10 http://pe.archive.ubuntu.com/ubuntu groovy-security Release
404 Not Found [IP: 200.236.31.4 80]
Reading package lists... Done
E: The repository …Run Code Online (Sandbox Code Playgroud) 通过 VirtualBox,即使在不同的机器上,我也有 2 个 Ubuntu Server 20.04 实例运行,并具有以下信息:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
Run Code Online (Sandbox Code Playgroud)
两者都安装了 MySQL,其说明与我几个月前使用的说明相同。当我这样做时,突然间,对于其中一个人来说,sudo apt update出现以下内容:
Get:2 http://repo.mysql.com/apt/ubuntu focal InRelease [12.9 kB]
Hit:3 http://pe.archive.ubuntu.com/ubuntu focal InRelease
Ign:4 https://packages.erlang-solutions.com/ubuntu focal InRelease
Hit:5 https://packages.erlang-solutions.com/ubuntu focal Release
Get:6 http://pe.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Err:2 http://repo.mysql.com/apt/ubuntu focal InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 467B942D3A79BD29
Get:9 http://pe.archive.ubuntu.com/ubuntu focal-backports InRelease [108 …Run Code Online (Sandbox Code Playgroud) 在通过 VirtualBox 将 Ubuntu Desktop 20.04 升级到 22.04 后,focal目录jammy中/etc/apt/sources.list.d存在该mysql.list文件。
根据一项研究,建议打开该文件并将其从 更改local为jammy. 因此我现在有
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out entries below, but any other modifications may be lost.
# Use command 'dpkg-reconfigure mysql-apt-config' as root for modifications.
deb http://repo.mysql.com/apt/ubuntu/ jammy mysql-apt-config
deb http://repo.mysql.com/apt/ubuntu/ jammy mysql-8.0
deb http://repo.mysql.com/apt/ubuntu/ jammy mysql-tools
#deb http://repo.mysql.com/apt/ubuntu/ jammy mysql-tools-preview
deb-src http://repo.mysql.com/apt/ubuntu/ jammy mysql-8.0
manueljordan@mac2013-vb143:/etc/apt/sources.list.d$
Run Code Online (Sandbox Code Playgroud)
现在,当执行该sudo apt update命令时,会发生以下情况: …
This is closely related to this question: How can I tell Ubuntu to do nothing when I close my laptop lid?.
I would like to stop Ubuntu from suspending or sleeping when the laptop lid is closed, while still turning the screen off to save power. How can I do that?
This is for a Dell Precision 5550 running Ubuntu 20.04 preinstalled.
VirtualBox 在6.1.38之前的许多主机中,对于许多虚拟机:Ubuntu 桌面/服务器已完成从 20.04 到 22.04 的升级。该过程很成功。
现在,对于所有桌面环境(不确定服务器是否会发生),当 Ubuntu 加载时会出现以下消息:
RETBleed: WARNING: Spectre v2 mitigation leaves CPU vulnerable to RETBleed attacks, data leaks possible!
Run Code Online (Sandbox Code Playgroud)
此消息仅出现在该22.04版本中 - 因此从未18.04出现在以前的版本中,例如20.04
我关心的是:
如何解决这种情况?
请注意,我可以通过所有这些虚拟机平静地工作。
我了解交互式登录和交互式非登录之间的区别
\n根据这篇优秀的文章:Zsh/Bash 启动文件加载顺序(.bashrc、.zshrc 等),我们有下表
\n+----------------+-----------+-----------+------+\n| |Interactive|Interactive|Script|\n| |login |non-login | |\n+----------------+-----------+-----------+------+\n|/etc/profile | A | | |\n+----------------+-----------+-----------+------+\n|/etc/bash.bashrc| | A | |\n+----------------+-----------+-----------+------+\n|~/.bashrc | | B | |\n+----------------+-----------+-----------+------+\n|~/.bash_profile | B1 | | |\n+----------------+-----------+-----------+------+\n|~/.bash_login | B2 | | |\n+----------------+-----------+-----------+------+\n|~/.profile | B3 | | |\n+----------------+-----------+-----------+------+\n|BASH_ENV | | | A |\n+----------------+-----------+-----------+------+\n| | | | |\n+----------------+-----------+-----------+------+\n| | | | |\n+----------------+-----------+-----------+------+\n|~/.bash_logout | C | | |\n+----------------+-----------+-----------+------+\nRun Code Online (Sandbox Code Playgroud)\n第一个链接引用了另一篇优秀的文章:清理 bash 自定义,其中提供了有关交互式登录和交互式非登录的出色解释,如下所示:
\n\n交互式登录shell 是您正在输入的 …
将操作系统从一个版本升级到其他版本,例如 - 从 18.04 到 20.04 或从 20.04 到 22.04 - 在整个过程中存在并使用命令do-release-upgrade,并且它有一些选项,例如-c和-d,现在在以下教程中
在步骤 4. 将 Ubuntu Linux 升级到最新的 LTS部分中指出以下内容:
执行以下命令:
sudo do-release-upgrade请注意您是否可能收到以下消息:
Run Code Online (Sandbox Code Playgroud)Checking for a new Ubuntu release There is no development version of an LTS available. To upgrade to the latest non-LTS develoment release set Prompt=normal in /etc/update-manager/release-upgrades.在这种情况下,请传递选项以强制
-d获取最新的支持版本:
sudo do-release-upgrade -d
当前文件中/etc/update-manager/release-upgrades具有该Prompt=lts值 - 根据一些研究,建议使用该值/设置
我应该假设 if …
为了在同一台机器内的用户之间共享数据/srv文件和目录,这里推荐该目录:
我假设这仍然有效,或者建议 \xe2\x80\x94 如果发生变化,请纠正我。
\n但是Java、Maven、Gradle 等共享开发相关软件的目录应该是什么呢?它们都将通过解压.tar.gz档案来安装。程序的中央位置优于每个用户在其各自的主目录中重复安装。
举个例子,为了像 Jenkins 一样使用 CI,我会安装许多 JDK 版本:11、15 和 17,Gradle 和 Maven 也类似。这些用于测试具有不同环境的项目。只需解压文件并使用其各自的设置.tar.gz更新文件即可安装上述软件包。.profile是的,我也使用这些存储库来安装服务器,例如 MySQL、RabbitMQ 等......
关于用户和组管理我在许多教程中找到了:
gpasswd- 添加和删除用户到组中usermod/ deluser- 添加、修改和删除组中的用户不太清楚的是 - 什么时候gpasswd会强制执行usermod/ deluser,反之亦然?
对于VirtualBox许多服务器虚拟机-每一台虚拟机都从 20.04 升级到 22.04。和命令工作正常。但就在几天前,我确实意识到,如果我对所有虚拟机执行以下命令:Ubuntu apt updateapt upgrade
VBoxClient --version
Run Code Online (Sandbox Code Playgroud)
出现以下错误信息
VBoxClient: error while loading shared libraries: libXt.so.6: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)
已重新安装VirtualBox Guest Additions,情况依然如此。
问题
额外问题
更新
在文中:
指示为解决方案执行命令
sudo apt install libxt6:i386
Run Code Online (Sandbox Code Playgroud)
表明
E: Unable to locate package libxt6:i386
Run Code Online (Sandbox Code Playgroud)
就这样被处决了
sudo apt install libxt6
Run Code Online (Sandbox Code Playgroud)
并已安装。
但遗憾的是,即使重新启动虚拟机,错误仍然存在
对于 Ubuntu Desktop 18:04 更新,我使用:
但现在突然出现了后者:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem
Run Code Online (Sandbox Code Playgroud)
所以执行该命令我得到:
sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of linux-generic-hwe-18.04:
linux-generic-hwe-18.04 depends on linux-headers-generic-hwe-18.04 (= 5.4.0.80.90~18.04.72); however:
Version of linux-headers-generic-hwe-18.04 on system is 5.4.0.77.86~18.04.69.
dpkg: error processing package linux-generic-hwe-18.04 (--configure):
dependency problems - leaving unconfigured
Setting up linux-modules-5.4.0-80-generic (5.4.0-80.90~18.04.1) ...
Setting up linux-image-5.4.0-80-generic (5.4.0-80.90~18.04.1) ...
I: /vmlinuz.old is now a …Run Code Online (Sandbox Code Playgroud) 关于Ubuntu安装:
Desktop或Server环境HDD对于基于或的硬盘SSD对于基于启动目的的最新UEFIPC 或笔记本电脑,建议定义/boot/efi1GB 空间。
对于使用(因此不存在)用于启动目的的旧PC 或笔记本电脑,建议的分区类型和空间应该是什么?BIOSUEFI
关于目录apt中/var/log/apt主要出现history.log和term.log文件及其“变体”(旧版本),例如:
history.log.1.gz...history.log.11.gzterm.log.1.gz...term.log.11.gz问题
/var/log/apt/history.log和之间有什么区别/关系/var/log/apt/term.log?我看了每一篇的内容,都差不多。