tonyjessie 发表于 2026-3-3 14:25:18

【待反馈】报个debian13 兼容性bug,系统问题,只是让工程...

debian13
Debian 的官方 Bug 跟踪系统里,有一个严重级别的 Bug(编号 #1071970),标题就是 “pcre3 should not be part of trixie”,即 pcre3 库不应该出现在 Debian 13(trixie)中。因此,在默认源中找不到它是符合预期的。



宝塔面板中的python网站中经常需要uwsgi
而uwsgi 需要 libpcre

因此
/www/server/pyporject_evn/paper/bin/uwsgi: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

导致宝塔中uwsgi全部用不了
over

大炮运维V587 发表于 2026-3-5 09:27:19

您好,我是debian13系统,使用的Python环境是
/www/server/pyporject_evn/versions/3.14.3/bin/uwsgi

测试跑 uwsgi运行测试案例,正常运行。(可能我用的系统是刚安装过的),您尝试更新下系统试试
apt update-y&& apt upgrade -y


测试代码:
myapp.py
def application(environ, start_response):
    # 设置响应头
    status = '200 OK'
    headers = [('Content-Type', 'text/html; charset=utf-8')]
    start_response(status, headers)

    # 页面内容
    content = """
    <html>
      <head><title>uWSGI Powered</title></head>
      <body>
            <h1 style="color: #2c3e50;">Hello from uWSGI!</h1>
            <p>这是一个由 Debian13 + uWSGI 驱动的简单页面。</p>
            <hr>
            <small>Server Time: 2026-03-04</small>
      </body>
    </html>
    """
    return

uwsgi.ini注意要放行8089端口

# 监听端口
http = :8089

# 项目目录和脚本
chdir = .
wsgi-file = myapp.py

# 进程管理
master = true
processes = 4
threads = 2

# 这里的 application 是 myapp.py 里的函数名
callable = application

# 退出时自动清理环境
vacuum = true
页: [1]
查看完整版本: 【待反馈】报个debian13 兼容性bug,系统问题,只是让工程...