Debian 与 Ubuntu
概述
参考:
Debian 与 Ubuntu 是 Unix-like OS 发行版
groupadd wheel
usermod -G wheel desistdaydream
tee /etc/sudoers.d/desistdaydream > /dev/null <<EOF
%wheel ALL=(ALL) NOPASSWD: ALL
EOF
~/.bashrc
if [ "$color_prompt" = yes ]; then
# PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
PS1='${debian_chroot:+($debian_chroot)}[\[\e[34;1m\]\u@\[\e[0m\]\[\e[32;1m\]\H\[\e[0m\] \[\e[31;1m\]\w\[\e[0m\]]\\$ '
else
# PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
PS1='${debian_chroot:+($debian_chroot)}[\[\e[34;1m\]\u@\[\e[0m\]\[\e[32;1m\]\H\[\e[0m\] \[\e[31;1m\]\w\[\e[0m\]]\\$ '
fi
Ubuntu
参考:
Ubuntu 是一个基于 Debian 的 Linux 发行版,主要由 FOSS 组成。
Ubuntu 由英国公司 Canonical 和其他开发者社区共同开发的,采用了一种精英治理模式。Canonical为每个Ubuntu版本提供安全更新和支持,从发布日期开始,直到该版本达到其指定的寿命终点(EOL)日期为止。Canonical 通过销售与 Ubuntu 相关的高级服务以及下载 Ubuntu 软件的人的捐赠来获得收入。
其他
Ubuntu Server 安装完成后,通常需要关闭自动更新,详见 Debian 包管理
更新 LTS 版本
# 1. 先把当前系统更新到最新
sudo apt update && sudo apt upgrade -y
# 2. 确保升级工具已安装
sudo apt install update-manager-core -y
# 3. 检查升级策略
cat /etc/update-manager/release-upgrades
# Prompt=lts → 只能升级到下一个 LTS 版本
# Prompt=normal → 也可以升级到非 LTS 版本
# 4. 执行升级
sudo do-release-upgrade
只检查不执行
sudo do-release-upgrade -c
查看当前的版本
lsb_release -a
关联文件与配置
版本生命周期
https://ubuntu.com/about/release-cycle
https://ubuntu.com/project/docs/release-team/list-of-releases/
意见反馈
这个页面对您有帮助吗?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.