当前位置:首页 > 未分类 > 正文内容

记录debian12系统安装宝塔后,各种疑难杂症的解决方案命令

我不是郭靖1年前 (2025-08-23)未分类1792

重启服务器:systemctl reboot

编辑软件源列表文件 nano /etc/apt/sources.list

注释掉光盘源deb cdrom:[Debian GNU/Linux 12.11.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20250517-09:52]/ bookworm main

                  # deb cdrom:[Debian GNU/Linux 12.11.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20250517-09:52]/ bookworm main


使用Debian官方全球源(稳定)

deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware

deb http://deb.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware

deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware

方案B:使用国内清华镜像源(推荐,速度更快)

deb 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 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


执行更新apt update


安装您最初需要的 sudo:apt install sudo -y

升级所有可更新的软件包apt upgrade -y

**********************************************************************

安装编译依赖

# 1. 更新软件包列表(我们已经做过了,但确保万无一失)

apt update


# 2. 安装核心编译工具和依赖库

apt install -y build-essential autoconf libtool pkg-config libssl-dev libcurl4-openssl-dev libonig-dev libxml2-dev libzip-dev zlib1g-dev libsqlite3-dev libwebp-dev libjpeg-dev libpng-dev libxpm-dev libfreetype6-dev


**************************************************************************

这一段是解决宝塔面板无法添加端口的问题。


确认 UFW 是否安装dpkg -l | grep ufw

如果确认 UFW 没有安装,你可以通过以下命令来安装:

apt update

apt install ufw -y

***********************************************************


扫描二维码推送至手机访问。

版权声明:如需转载请注明出处。

本文链接:https://www.1688fs.net/index.php/post/55.html

分享给朋友:

“记录debian12系统安装宝塔后,各种疑难杂症的解决方案命令” 的相关文章

3336改标题的记录

3336改标题的记录

5月5日修改标题老:薄款冰丝女休闲裤舒适高腰九分裤小个子哈伦裤时尚小脚裤子女夏季新:休闲裤九分裤简约小个子显瘦哈伦裤小脚裤子女夏季薄款松紧腰女裤5月12日再次修改新:薄款冰丝女休闲裤九分裤小个子哈伦裤裤子女2023新款夏季小脚裤新:夏季薄款哈伦裤女冰丝女休闲裤九分裤小个子裤子女2023新款小脚裤20...

经典老歌记录

经典老歌记录

爱就爱了我要找到你加速度海浪下沙爱的就是你情非得已花香爱一个人好难为什么你背着我爱别人谢谢你的爱1999因为爱所以爱单生情歌伤心1999雨一直下第一次背叛情歌那就这样吧大哥情人-杜德伟有多少爱可以重来精忠报国白桦林一生有你爱我久久绿光后来-刘若英至少还有你-林忆莲一个人的精彩-萧亚轩最熟悉的陌生人趁...

服装打版的一些常见问题

服装打版的一些常见问题

一般人不说的打版秘籍 (一共86招)招招致命,助你成为绝顶高手1.已知领围,1/2领宽按领围的1/5-0.5cm,领深按领围1/5+0.5cm计算,注:此计算方法不包括圆领衫和翻领衫2.时装上衣在打版过程中,前后片的肩斜要如何处理?答:前后片打板要分开,包括肩斜亦是如此,一般前片肩斜比后片肩斜要深1...

/sound:sys:alsa /usb:id:054c:0268 +clipboard /cert-ignore

/sound:sys:alsa /usb:id:054c:0268 +clipboard /cert-ignore

可用的 /sound:sys:alsa /usb:id:054c:0268 +clipboard /cert-ignore/sound:sys:alsa /cert-ignore /usb/sound:sys:alsa /cert-ignore /usb:transport:ip/v:192.168...