背景和尝试:
我在尝试着构建 Blender在 Ubuntu (20.04) WSL2 终端中。我完成了“基本设置”构建说明,但./blender/build_files/build_environment/install_deps.sh
在“高级设置”自动依赖项安装说明中运行命令会出现错误:
$ ./blender/build_files/build_environment/install_deps.sh
WARNING! ****WARNING****
If you are experiencing issues building Blender, _*TRY A FRESH, CLEAN BUILD FIRST*_!
The same goes for install_deps itself, if you encounter issues, please first erase everything in /home/domattioli/src/blender-deps and /opt/lib
(provided obviously you did not add anything yourself in those dirs!), and run install_deps.sh again!
Often, changes in the libs built by this script, or in your distro package, cannot be handled simply, so...
You may also try to use the '--build-foo' options to bypass your distribution's packages
for some troublesome/buggy libraries...
Ran with:
install_deps.sh
Installing dependencies for DEB-based distribution
Source code of dependencies needed to be compiled will be downloaded and extracted into '/home/domattioli/src/blender-deps'.
Built libs of dependencies needed to be compiled will be installed into '/opt/lib'.
Please edit $SRC and/or $INST variables at the beginning of this script,
or use --source/--install options, if you want to use other paths!
Number of threads for building: 24 (automatically detected, use --threads=<nbr> to override it).
Full install: false (use --with-all option to enable it).
Building OpenCOLLADA: false (use --with-opencollada option to enable it).
Building Embree: false (use --with-embree option to enable it).
Building OpenImageDenoise: false (use --with-oidn option to enable it).
Example:
Full install without OpenCOLLADA: --with-all --skip-opencollada
Use --help to show all available options!
Do you want to continue (Y/n)?y
[sudo] password for domattioli:
Get:1 file:/var/cuda-repo-wsl-ubuntu-11-7-local InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Get:1 file:/var/cuda-repo-wsl-ubuntu-11-7-local InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Get:3 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease [1484 B]
Get:4 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 InRelease [1481 B]
Get:5 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 InRelease [1474 B]
Hit:6 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease
Hit:7 https://arkane-systems.github.io/wsl-transdebian/apt focal InRelease
Hit:8 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal InRelease
Hit:9 https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64 InRelease
Get:10 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:11 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease [10.5 kB]
Hit:12 http://archive.ubuntu.com/ubuntu focal InRelease
Get:13 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 Packages [187 kB]
Hit:14 http://archive.canonical.com/ubuntu focal InRelease
Hit:15 http://ppa.launchpad.net/saiarcot895/chromium-dev/ubuntu focal InRelease
Get:16 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:17 http://ppa.launchpad.net/thomas-schiex/blender/ubuntu focal InRelease
Get:18 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2051 kB]
Get:20 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [942 kB]
Fetched 3531 kB in 1s (2388 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libfontconfig1-dev' instead of 'libfontconfig-dev'
E: Unable to locate package libpystring-dev
ERROR! apt-get failed to install requested packages, exiting.
我已经更新了路径信息以解决以下问题:库字体配置,如上所述这里
但以下“操作方法”安装说明为了libpystring也会产生错误:
$ sudo apt-get update
[sudo] password for domattioli:
Get:1 file:/var/cuda-repo-wsl-ubuntu-11-7-local InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Get:1 file:/var/cuda-repo-wsl-ubuntu-11-7-local InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Get:3 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease [1484 B]
Get:4 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 InRelease [1481 B]
Get:5 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 InRelease [1474 B]
Hit:6 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease
Hit:7 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
Hit:8 https://arkane-systems.github.io/wsl-transdebian/apt focal InRelease
Hit:9 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:10 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:11 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:12 http://archive.canonical.com/ubuntu focal InRelease
Hit:13 https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64 InRelease
Hit:14 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:15 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal InRelease
Hit:16 http://ppa.launchpad.net/saiarcot895/chromium-dev/ubuntu focal InRelease
Hit:17 http://ppa.launchpad.net/thomas-schiex/blender/ubuntu focal InRelease
Fetched 4439 B in 1s (6338 B/s)
Reading package lists... Done
$ sudo apt-get install libpystring-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libpystring-dev
我已经尝试过sudo apt-file update
执行该sudo apt-file search libpystring
命令,但没有任何返回;
$ sudo apt-file update
Get:1 file:/var/cuda-repo-wsl-ubuntu-11-7-local InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Get:1 file:/var/cuda-repo-wsl-ubuntu-11-7-local InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Hit:3 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease
Get:4 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease [1484 B]
Get:5 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 InRelease [1481 B]
Get:6 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 InRelease [1474 B]
Hit:7 https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64 InRelease
Hit:8 https://arkane-systems.github.io/wsl-transdebian/apt focal InRelease
Hit:9 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
Hit:10 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal InRelease
Hit:11 http://archive.ubuntu.com/ubuntu focal InRelease
Get:12 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:13 http://archive.canonical.com/ubuntu focal InRelease
Get:14 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:15 http://ppa.launchpad.net/saiarcot895/chromium-dev/ubuntu focal InRelease
Hit:16 http://ppa.launchpad.net/thomas-schiex/blender/ubuntu focal InRelease
Get:17 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Fetched 340 kB in 1s (418 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
$ sudo apt-file search libpystring
$
问题摘要:
我该如何解决该E: Unable to locate package libpystring-dev
错误?
编辑:这是包含 Universe repo 的输入/输出:
/$ sudo add-apt-repository universe
[sudo] password for domattioli:
'universe' distribution component is already enabled for all sources.
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
Get:1 file:/var/cuda-repo-wsl-ubuntu-11-7-local InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Get:1 file:/var/cuda-repo-wsl-ubuntu-11-7-local InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Hit:3 https://arkane-systems.github.io/wsl-transdebian/apt focal InRelease
Get:4 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease [1484 B]
Get:5 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 InRelease [1481 B]
Hit:6 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease
Get:7 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 InRelease [1474 B]
Hit:8 https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64 InRelease
Hit:9 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
Hit:10 http://archive.canonical.com/ubuntu focal InRelease
Hit:11 http://archive.ubuntu.com/ubuntu focal InRelease
Get:12 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:13 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal InRelease
Get:14 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:15 http://ppa.launchpad.net/saiarcot895/chromium-dev/ubuntu focal InRelease
Hit:16 http://ppa.launchpad.net/thomas-schiex/blender/ubuntu focal InRelease
Get:17 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Fetched 340 kB in 1s (437 kB/s)
Reading package lists... Done
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
Get:1 file:/var/cuda-repo-wsl-ubuntu-11-7-local InRelease [1575 B]
Get:1 file:/var/cuda-repo-wsl-ubuntu-11-7-local InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Hit:3 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease
Get:4 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease [1484 B]
Hit:5 https://arkane-systems.github.io/wsl-transdebian/apt focal InRelease
Get:6 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 InRelease [1481 B]
Hit:7 http://archive.canonical.com/ubuntu focal InRelease
Get:8 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 InRelease [1474 B]
Hit:9 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
Hit:10 https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64 InRelease
Get:11 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:12 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal InRelease
Hit:13 http://archive.ubuntu.com/ubuntu focal InRelease
Get:14 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:15 http://ppa.launchpad.net/saiarcot895/chromium-dev/ubuntu focal InRelease
Hit:16 http://ppa.launchpad.net/thomas-schiex/blender/ubuntu focal InRelease
Get:17 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Fetched 340 kB in 1s (327 kB/s)
Reading package lists... Done
$ sudo add-apt-repository "deb http://archive.canonical.com/ubuntu $(lsb_release -sc) partner"
Get:1 file:/var/cuda-repo-wsl-ubuntu-11-7-local InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Get:1 file:/var/cuda-repo-wsl-ubuntu-11-7-local InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Hit:3 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease
Get:4 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease [1484 B]
Get:5 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 InRelease [1481 B]
Hit:6 https://arkane-systems.github.io/wsl-transdebian/apt focal InRelease
Get:7 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 InRelease [1474 B]
Hit:8 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
Hit:9 http://archive.canonical.com/ubuntu focal InRelease
Hit:10 https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64 InRelease
Hit:11 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal InRelease
Hit:12 http://archive.ubuntu.com/ubuntu focal InRelease
Get:13 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:15 http://ppa.launchpad.net/saiarcot895/chromium-dev/ubuntu focal InRelease
Hit:16 http://ppa.launchpad.net/thomas-schiex/blender/ubuntu focal InRelease
Get:17 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Fetched 340 kB in 1s (465 kB/s)
Reading package lists... Done
$ sudo apt-get update
Get:1 file:/var/cuda-repo-wsl-ubuntu-11-7-local InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Get:1 file:/var/cuda-repo-wsl-ubuntu-11-7-local InRelease [1575 B]
Get:2 file:/var/cudnn-local-repo-ubuntu2004-8.4.1.50 InRelease [1575 B]
Hit:3 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease
Get:4 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease [1484 B]
Hit:5 http://archive.canonical.com/ubuntu focal InRelease
Get:6 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 InRelease [1481 B]
Hit:7 https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64 InRelease
Hit:8 https://arkane-systems.github.io/wsl-transdebian/apt focal InRelease
Hit:9 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
Get:10 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 InRelease [1474 B]
Hit:11 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu focal InRelease
Get:12 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:13 http://archive.ubuntu.com/ubuntu focal InRelease
Get:14 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:15 http://ppa.launchpad.net/saiarcot895/chromium-dev/ubuntu focal InRelease
Hit:16 http://ppa.launchpad.net/thomas-schiex/blender/ubuntu focal InRelease
Get:17 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Fetched 340 kB in 1s (469 kB/s)
Reading package lists... Done
$ sudo apt-get install libpystring-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libpystring-dev
$