我使用 Digital Ocean 和 Ubuntu 24.04 (LTS) x64 droplet + 此脚本 https://github.com/Yenthe666/InstallScript/tree/17.0 安装时出现以下错误。如果我禁用外部-
我使用 Digital Ocean 和 Ubuntu 24.04 (LTS) x64 droplet + 此脚本 https://github.com/Yenthe666/InstallScript/tree/17.0
安装时出现以下错误。
如果我禁用外部管理环境,我会收到另一个有关 idna 3.6 的错误(请参阅下面的第二个错误)。
有谁能解决这个问题?
谢谢你!
---- Install python packages/requirements ----
error: externally-managed-environment
× This environment is externally managed
> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.12/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
IDDNA 错误
Installing collected packages: idna, greenlet, geoip2, ebaysdk, docutils, decorator, chardet, beautifulsoup4, Babel, zeep, vobject, reportlab, ofxparse, gevent, freezegun, cryptography, pyopenssl
Attempting uninstall: idna
Found existing installation: idna 3.6
ERROR: Cannot uninstall idna 3.6, RECORD file not found. Hint: The package was installed by debian.
我想将所有流量从我的 blog.oldsite.com 重定向到 blog.newsite.com例如:blog.oldsite.com => blog.newsite.comblog.oldsite.com/page1 => blog.newsite.com/page1我已经按照这个做...
我想将所有流量从我的 blog.oldsite.com 重定向到 blog.newsite.com
例如:
我已遵循 此文档 :
添加了突出显示的部分:
sudo vim /etc/apache2/sites-available/000-default.conf
然后将以下行添加到:
sudo vim /var/www/html/.htaccess
最后到我的旧网站目录:/var/www/blog.oldsite.com
sudo vim .htaccess
添加了突出显示的部分:
现在我正确获得了以下重定向:
但以下请求未被重定向:
不确定为什么路径没有被正确重定向?