当前位置:网站首页>Debian 12 Bookworm 尝鲜记
Debian 12 Bookworm 尝鲜记
2022-08-02 03:26:00 【copcin】
前几天在网上看到 Debian 12 的开发代号定下来了,是 Bookworm,好奇地去清华源看了一看,结果看到了这个:

我目瞪狗呆(0-0),Debian 12 不是预计在 2023 年中期发布吗?这下镜像源都出来了!不过既然源出来了,那不就可以提前尝鲜 Debian 12 啦?我立马在我的树莓派上行动了起来~
-----------------------正文-------------------------
1. 准备
硬件要求:一台装好 Debian 或 Raspbian 的树莓派 / PC
2. 安装 Debian 12
在更新前先确定你的电脑装的是不是 Debian 11:
lsb_release -a如果弹出的信息里有 bullseye 就说明你的电脑是 Debian 11(bullseye 是 debian 11 的开发代号),如果没有要先升级到 Debian 11 再进行下一步操作~
更新现有的软件至 Debian 11 的最新版本:
sudo apt-get update
sudo apt-get upgrade然后把 /etc/apt/sources.list 里面的内容全部注释掉,增加以下 Debian 12 的软件源:
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free更新一下软件源:
sudo apt-get update然后更新现有的 Debian 11 软件至 Debian 12:
sudo apt-get upgrade期间如果不跑代码终端跳出来一些字符,Q 退出~
安装完后更新 Debian 系统内核至 Debian 12:
sudo apt-get full-upgrade期间会好几次不跑代码终端提示,第一次 Q 退出,后面全部输入 Y 同意更改~
等到它代码跑完,输入 sudo reboot 重启~
3. 安装后问题
重启之后你可能会发现:之前的 UI 哪去了?怎么换上了一个这么丑的 LXDE 桌面环境?
这是因为 Debian 12 还不稳定,原来的 UI 与其它包发生了依赖冲突,所以这就是升级 Debian 12 的代价~
目前测试通过的 Debian 12 可用桌面环境有三个:LXDE(就是自带的那个),xfce4,GNOME。由于 GNOME 桌面环境比较好看,所以这里我们以 GNOME 为例。
输入以下命令安装 aptitude(aptitude 是一个类似 apt 的包管理器,它处理依赖关系更加智能,很多软件 apt 不能装的 aptitude 都可以装,比如 GNOME。不过安装软件尽量使用 apt-get,系统原生兼容性比较好,实在不行才用 aptitude)
sudo apt-get install aptitude然后安装 GNOME:
aptitude install gnome如果不想安装 GNOME 自带的一些软件可以安装 GNOME 核心版:
aptitude install gnome-core安装完后选择 GNOME 作为默认桌面环境:
update-alternatives --config x-session-manager当它提示类似下图的信息时,选择 gnome-session 那个:
There are 3 choices for the alternative x-session-manager (providing /usr/bin/x-session-manager).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/lxde-loader 50 auto mode
1 /usr/bin/gnome-session 50 manual mode
2 /usr/bin/startxfce4 50 manual mode
3 /usr/bin/xfce4-session 40 manual mode
Press <enter> to keep the current choice[*], or type selection number:1完成后 sudo reboot 重启,你就会发现自动重启 GNOME 环境啦~
(另外进入 GNOME 后可能会发现下面的 Debian 版本号是 Debian 11,个人理解,这是因为 GNOME 还没做出 Debian 12 的 logo~ 如果想验证装的是不是 Debian 12,可以 lsb_release -a,如果打印的信息里有 Debian 12 的开发代号 bookworm 那就说明装的是真的 Debian 12~)
PS:由于 GNOME 桌面环境自带了很多软件,而大部分都是我们不需要的。下面分享一些卸载原生软件的方法~
卸载原生自带的游戏:
sudo apt-get purge gnome-games
sudo apt-get --purge autoremove卸载原生自带的 LibreOffice 办公套件:
sudo apt-get purge libreoffice*
sudo apt-get --purge autoremove 卸载其它不需要的软件:设置 -> 应用程序里卸载~
边栏推荐
- 借贷记账法下的账户结构、借贷记账法的记账规则、借贷记账法下的账户对应关系与会计分录
- 【一句话攻略】彻底理解JS中的回调(Callback)函数
- 清理c盘爆满告急,C盘清理
- 会计账簿、会计账簿概述、会计账簿的启用与登记要求、会计账簿的格式和登记方法
- How to log in to Alibaba Cloud server using the admin account
- Smart Tips for Frida Scripting in Kali Environment
- 库存现金、现金管理制度、现金的账务处理、银行存款、银行存款的账务处理、银行存款的核对
- Alfa: 1 vulnhub walkthrough
- 政府会计的概念、政府会计标准体系、政府会计的特点(会形成小考点)、政府会计要素及其确认和计量、政府预算会计要素、政府财务会计要素
- hackmyvm-hopper预排
猜你喜欢
随机推荐
挖矿是什么意思?矿工都做了什么?
Alfa: 1 vulnhub walkthrough
管理会计(对内)指引、管理会计要素及其具体内容(可能考,考前记一下,推荐记一下四个大点即可)、
What are the killer super powerful frameworks or libraries or applications for PHP?
Win10 解决AMD平台下SVM无法开启的问题
The first time to tear the code by hand, how to solve the problem of full arrangement
c语言用栈实现计算中缀表达式
真·杂项:资本论阅读笔记(随缘更新)
hackmyvm: may walkthrough
2021-09-04 最简单的Golang定时器应用以及最简单的协程入门儿
hackmyvm: again walkthrough
The focus of the Dom implementation input triggers
Masashi: 1 vulnhub walkthrough
Dcat Admin 关闭代码生成器 登录指定地址
hackmyvm-bunny预排
C language uses stack to calculate infix expressions
How to calculate the distance between two points on the earth (with formula derivation)
WeChat applet development video loading: [Rendering layer network layer error] Failed to load media
CTF之xxe
ES6 array extension methods map, filter, reduce, fill and array traversal for…in for…of arr.forEach








