DEBIAN12系统安装和软件更新
debian吧
全部回复
仅看楼主
level 2
199难不难 楼主
原版在哔哩哔哩关注零炻
2025年05月23日 13点05分 1
level 2
199难不难 楼主
阿里云镜像站
deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
腾讯云镜像站
deb https://mirrors.tencent.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.tencent.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.tencent.com/debian-security/ bookworm-security main
deb-src https://mirrors.tencent.com/debian-security/ bookworm-security main
deb https://mirrors.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contrib
网易镜像站
deb https://mirrors.163.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.163.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.163.com/debian-security/ bookworm-security main
deb-src https://mirrors.163.com/debian-security/ bookworm-security main
deb https://mirrors.163.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.163.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.163.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.163.com/debian/ bookworm-backports main non-free non-free-firmware contrib
华为镜像站
deb https://mirrors.huaweicloud.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.huaweicloud.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.huaweicloud.com/debian-security/ bookworm-security main
deb-src https://mirrors.huaweicloud.com/debian-security/ bookworm-security main
deb https://mirrors.huaweicloud.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.huaweicloud.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.huaweicloud.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.huaweicloud.com/debian/ bookworm-backports main non-free non-free-firmware contrib
清华大学镜像站
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
中科大镜像站
deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
2025年05月23日 13点05分 2
level 2
199难不难 楼主
1、修改源
sudo nano /etc/apt/sources.list
把第一行注释掉
然后参照“源汇总.txt”添加想要的源
然后执行sudo apt update更新列表
2、安装wifi驱动
查看设备型号

lsp
ci
根据自己的wifi网卡型号查找对应的驱动
sudo apt install dkms
sudo apt --fix-broken install
sudo dpkg -i broadcom-sta-dkms_6.30.223.271-23~
bp
o11+1_all.deb
3、修改截图快捷键
在开始菜单搜索Spectacle截图工具,点击配置,选择快捷键,在全局备选中修改自己喜欢的即可
4、取消单击打开
工作区行为->常规行为->单击文件、文件夹时->选中
5、取消关机等待90s
sudo nano /etc/systemd/user.conf
把以下两行取消注释并修改为1s
DefaultTimeoutStartSec=1s
DefaultTimeoutStopSec=1s
6、安装星火应用商店
sudo apt install ./spark-store_4.3.0-fix3_amd64.deb
2025年05月23日 13点05分 3
level 2
199难不难 楼主
显卡安装
1、准备工作
(1)安装内核headers文件
sudo apt install linux-headers-$(uname -r)
(2)安装dkms
sudo apt install dkms
如果报错就执行以下命令修复一下依赖
sudo apt --fix-broken install
(3)卸载之前的nvidia驱动(可选)
sudo apt-get --purge remove "*nvidia*" "libxnvctrl*"
sudo apt-get autoremove
2、添加源(可选,如果第3步找不到nvidia-driver再添加)
sudo nano /etc/apt/sources.list
在里面添加如下一行
deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
然后执行sudo apt update更新一下列表,更新的有点慢,可以更换手机热点
3、安装驱动(两种方法任选其一)
方法一:从官方源安装
sudo apt install nvidia-driver firmware-misc-nonfree
安装时会弹出“有冲突的nouveau内核模块正在运行”,直接回车
如果需要cuda,执行以下命令
sudo apt install nvidia-cuda-dev nvidia-cuda-toolkit
使用dkms将驱动安装进内核(自行替换自己的nvidia版本号)
ls /usr/src | grep nvidia
回复nvidia-current-535.183.01
sudo dkms install -m nvidia -v current-535.183.01
方法二:直接安装run驱动(根据自己型号从官网下载https://www.nvidia.cn/drivers/lookup/)
(1)禁用开源驱动
sudo nano /etc/modprobe.d/blacklist.conf
在文件中添加以下内容
blacklist nouveau
options nouveau modeset=0
然后执行以下命令生效
sudo update-initramfs -u
然后重启电脑
(2)安装
sudo chmod a+x NVIDIA-Linux-x86_64-535.183.01.run
sudo ./NVIDIA-Linux-x86_64-535.183.01.run -no-x-check -no-nouveau-check -no-opengl-files
32位库选择no dkms选择yes X选择no(一定要选no)
4、开机黑屏怎么办?
不要慌,先ctrl+alt+F2,输入账号密码登陆进入命令界面
lspci | grep -E "VGA|3D"查看一下当前集显和独显的id
如下,核显的id就是0:2.0 独显的id就是1:0.0(去掉多余的0)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
然后我们修改或者删除xorg.conf
sudo nano /etc/X11/xorg.conf
找到Device0,把下面的nvidia改为modesetting保存重启,就可以正常开机了
6、安装大黄蜂(可选)
sudo apt install bumblebee-nvidia bumblebee
sudo adduser $USER bumblebee
用独显运行某个程序
optirun ***
sudo apt install mesa-utils
optirun glxgears
7、安装显卡监控程序(可选)
sudo apt install pipx
pipx install nvitop
pipx run nvitop
2025年05月23日 13点05分 4
level 2
199难不难 楼主
输入法安装
1、卸载fcitx5(因为会和搜狗冲突)
sudo apt purge fcitx*
sudo apt autoremove
2、安装搜狗输入法
sudo apt install ./sogoupinyin_4.2.1.145_amd64.deb
3、执行修复脚本
chmod +x fix.sh
sudo bash fix.sh
4、切换x11
在登录界面的右下角,选择“桌面会话:Plasma(X11)”
2025年05月23日 13点05分 5
level 2
199难不难 楼主
1、安装wps
sudo apt install ./wps-office_12.1.0.17881_amd64.deb
2、修复字体
(1)复制字体文件
sudo cp -r wps-fonts /usr/share/fonts
(2)添加权限
sudo chmod 644 /usr/share/fonts/wps-fonts/*
(3)更新字体索引
sudo mkfontscale
(4)更新字体缓存
sudo fc-cache -vfs
2025年05月23日 13点05分 6
level 2
199难不难 楼主
linux版微信下载链接:http://linux.wechat.oops.cyou
AUR链接:https://aur.archlinux.org/packages/wechat-universal-bwrap
1、安装依赖
sudo apt install libatomic1
sudo apt install ./libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb
sudo apt install ./deepin-elf-verify_1.2.0.6-1_amd64.deb
2、安装微信
sudo apt install ./store.spark-app.wechat-linux-spark_2.2.1-real1.0.0.241.8_amd64.deb
3、创建快捷方式
cd /usr/share/applications
sudo touch wechat.desktop
sudo chmod +x wechat.desktop
sudo nano wechat.desktop
将以下内容粘贴进去
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Categories=Chat;Network;
Exec=/opt/apps/store.spark-app.wechat-linux-spark/files/launch.sh
Icon=/opt/apps/store.spark-app.wechat-linux-spark/entries/icons/hicolor/512x512/apps/store.spark-app.wechat-linux-spark.png
Name=WeChat Linux
Name[tr]=WeChat Linux
Name[zh_CN]=微信Linux
Comment=WeChat Desktop
Comment[tr]=WeChat Desktop
Comment[zh_CN]=微信桌面版
Terminal=false
StartupNotify=true
StartupWMClass=wechat
X-Deepin-Vendor=user-custom
2025年05月23日 13点05分 7
level 2
199难不难 楼主
可以从这几个链接找自己喜欢的软件
https://archive.kylinos.cn/kylin/partner/pool/
https://aur.archlinux.org/
https://mirrors.sdu.edu.cn/spark-store-repository/amd64-store/music/
迅雷安装注意事项
装完后需要修复一下图标
sudo cp /opt/apps/com.xunlei.download/entries/applications/com.xunlei.download.desktop /usr/share/applications
QQ音乐注意事项
修复一下启动闪退的问题,禁止沙盒运行
sudo nano /usr/share/applications/qqmusic.desktop
把Exec那一行改为Exec=/opt/qqmusic/qqmusic %U --no-sandbox
2025年05月23日 13点05分 8
level 2
199难不难 楼主
原版在哔哩哔哩关注零炻 上面有系统安装包有软件安装包
2025年05月23日 13点05分 9
level 10
请教下大佬到底什么问题造成debian12卡死
硬件:戴尔latitude7390,8250u处理器,无独显
1、安装debian12.11后默认设置开机会在命令行卡死;
2、grub设置nomodeset或aipi=off能够正常开机进入系统,但屏幕亮度调节条消失,并且挂起后无法唤醒;
3、gurb设置i915.modset=1能够开机但是在登陆界面会卡死;
4、grub设置nomodeset开机进入系统卸载xserver-xorg-video-intel,使用 xserver-xorg-core,然后正常模式启动能进入系统,屏幕亮度调节条出现并且能调节亮度,但是进入系统十多二十秒之后就会卡死。
2025年05月29日 10点05分 10
level 10
关注了,感谢分享!
2026年03月03日 00点03分 11
1