我使用 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.
我在 Ubuntu 22.04.4 lts 上安装 Android Studio Koala | 2024.1.1.12。当我从应用程序启动器打开 android studio 时,构建 Gradle 总是失败并产生此错误:无法安装 Gradle...
我在 Ubuntu 22.04.4 lts 上安装 Android Studio Koala | 2024.1.1.12。当我从应用程序启动器打开 android studio 时,构建 Gradle 总是失败并产生此错误:
Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-8.7-bin.zip'.
Reason: java.net.SocketTimeoutException: Read timed out
但是当我使用终端打开Android Studio时,如下所示:
sudo /opt/android-studio/bin/studio.sh
它工作正常。
以下是通过 Android Studio -> 工具 -> 创建桌面条目生成的 jetbrains-studio.desktop:
Version=1.0
Type=Application
Name=Android Studio
Icon=/opt/android-studio/bin/studio.svg
Exec="/opt/android-studio/bin/studio.sh" %f
Comment=The Drive to Develop
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-studio
StartupNotify=true
我试图修改 jetbrains-studio.desktop 来运行我自己的 bash 脚本,该脚本使用 运行 Android Studio sudo
。但是 Gradle 构建仍然像以前一样失败。
修改后的jetbrains-studio.desktop:
Version=1.0
Type=Application
Name=Android Studio
Icon=/opt/android-studio/bin/studio.svg
Exec="/opt/android-studio/bin/sudo-studio.bash" %f
Comment=The Drive to Develop
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-studio
StartupNotify=true
/opt/android-studio/bin/sudo-studio.bash 文件:
#!/bin/bash
sudo /opt/android-studio/bin/studio.sh %f