紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
容器未满足VS Code服务器的所有要求
-
在ubuntu22.04中一键安装melodic,安装成功,在vscode中打开容器失败
vscode终端中显示如下:
[66 ms] Dev Containers 0.338.1 in VS Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937). [65 ms] Start: 正在解析远程 [67 ms] Setting up container: /melodic1 [68 ms] Start: Run: docker inspect --type container /melodic1 [100 ms] Start: Check Docker is running [100 ms] Start: Run: docker version [130 ms] Client: Docker Engine - Community Version: 25.0.1 API version: 1.44 Go version: go1.21.6 Git commit: 29cf629 Built: Tue Jan 23 23:09:23 2024 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: [130 ms] Version: 25.0.1 API version: 1.44 (minimum version 1.24) Go version: go1.21.6 Git commit: 71fa3ab Built: Tue Jan 23 23:09:23 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.27 GitCommit: a1496014c916f9e62104b33d1bb5bd03b0858e59 runc: Version: 1.1.11 GitCommit: v1.1.11-0-g4bccb38 docker-init: Version: 0.19.0 GitCommit: de40ad0 [133 ms] Start: Run: /usr/share/code/code /home/sun/.vscode/extensions/ms-vscode-remote.remote-containers-0.338.1/dist/spec-node/devContainersSpecCLI.js set-up --container-id 1a88edfaa10e13445e9faed1b50a971791d72e959d678f5c2e3e215575507c0f --user-data-folder /home/sun/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-3a928d76-8c29-4c02-8312-02a2e0c2b5b41706933479471 --log-level debug --log-format json --default-user-env-probe loginInteractiveShell --skip-post-create [580 ms] @devcontainers/cli 0.56.0. Node.js v18.17.1. linux 6.5.8-custom x64. [580 ms] Start: Run: docker buildx version [730 ms] github.com/docker/buildx v0.12.1 30feaa1 [731 ms] [731 ms] Start: Run: docker inspect --type container 1a88edfaa10e13445e9faed1b50a971791d72e959d678f5c2e3e215575507c0f [753 ms] Start: Inspecting container [754 ms] Start: Run: docker inspect --type container 1a88edfaa10e13445e9faed1b50a971791d72e959d678f5c2e3e215575507c0f [775 ms] Start: Run in container: /bin/sh [780 ms] Start: Run in container: uname -m [861 ms] x86_64 [861 ms] [861 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [863 ms] NAME="Ubuntu" VERSION="18.04.6 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.6 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic [864 ms] [864 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]*:[^:]*:root:' /etc/passwd || true) [867 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcEnvironmentMarker' [868 ms] [868 ms] [868 ms] Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker' [869 ms] [869 ms] [878 ms] Start: Run: /usr/share/code/code /home/sun/.vscode/extensions/ms-vscode-remote.remote-containers-0.338.1/dist/spec-node/devContainersSpecCLI.js read-configuration --container-id 1a88edfaa10e13445e9faed1b50a971791d72e959d678f5c2e3e215575507c0f --log-level debug --log-format json --include-merged-configuration --mount-workspace-git-root [1202 ms] @devcontainers/cli 0.56.0. Node.js v18.17.1. linux 6.5.8-custom x64. [1202 ms] Start: Run: docker inspect --type container 1a88edfaa10e13445e9faed1b50a971791d72e959d678f5c2e3e215575507c0f [1226 ms] Start: Inspecting container [1226 ms] Start: Run: docker inspect --type container 1a88edfaa10e13445e9faed1b50a971791d72e959d678f5c2e3e215575507c0f [1247 ms] Start: Run in container: /bin/sh [1252 ms] Start: Run in container: uname -m [1327 ms] x86_64 [1327 ms] [1327 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null [1329 ms] NAME="Ubuntu" VERSION="18.04.6 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.6 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic [1329 ms] [1329 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]*:[^:]*:root:' /etc/passwd || true) [1332 ms] Start: Run in container: test -d '/root/.vscode-server' [1333 ms] [1333 ms] [1333 ms] Start: Run in container: test ! -f '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.vscode-server/data/Machine' && { > '/root/.vscode-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null [1335 ms] [1335 ms] [1335 ms] Exit code 1 [1335 ms] Start: Run in container: cat /root/.vscode-server/data/Machine/settings.json [1337 ms] [1337 ms] cat: /root/.vscode-server/data/Machine/settings.json: No such file or directory [1337 ms] Exit code 1 [1338 ms] Start: Run in container: test -d '/root/.vscode-server/bin/05047486b6df5eb8d44b2ecd70ea3bdf775fd937' [1338 ms] [1338 ms] [1339 ms] Start: Run in container: test -x '/root/.vscode-server/bin/05047486b6df5eb8d44b2ecd70ea3bdf775fd937/bin/helpers/check-requirements.sh' [1339 ms] [1339 ms] [1340 ms] Start: Run in container: '/root/.vscode-server/bin/05047486b6df5eb8d44b2ecd70ea3bdf775fd937/bin/helpers/check-requirements.sh' [1375 ms] Warning: Missing GLIBC >= 2.28! from /lib/x86_64-linux-gnu/libc-2.27.so Error: Missing required dependencies. Please refer to our FAQ https://aka.ms/vscode-remote/faq/old-linux for additional information. [1375 ms] [1375 ms] Exit code 99 [1379 ms] Command in container failed: '/root/.vscode-server/bin/05047486b6df5eb8d44b2ecd70ea3bdf775fd937/bin/helpers/check-requirements.sh' [1379 ms] Warning: Missing GLIBC >= 2.28! from /lib/x86_64-linux-gnu/libc-2.27.so Error: Missing required dependencies. Please refer to our FAQ https://aka.ms/vscode-remote/faq/old-linux for additional information. [1379 ms] Exit code 99
-
@1213112157 你的VSCode版本过高。Ubuntu 18.04 的libc 太老了,VSCode不兼容。
-
@1213112157 在 容器未满足VS Code服务器的所有要求 中说:
https://aka.ms/vscode-remote/faq/old-linux for additional information.
看看能否升级容器内的libc版本