Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Network connection failed in chroot #257

Open
woshigenm opened this issue Jan 22, 2023 · 2 comments
Open

Network connection failed in chroot #257

woshigenm opened this issue Jan 22, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@woshigenm
Copy link

woshigenm commented Jan 22, 2023

Are you rooted?

Yes

Desktop environment

None

Container type

None

Configuration

container value
os ubuntu dev
arch arm64

host value
os android 12
arch arm64
terminal termux
tmoe latest

Describe the bug

无法安装容器

Screenshots

No response

How to reproduce

正常安装容器

Expected behavior

正常工作

Error Logs

mount: '/data/data/com.termux/files/home/.local/share/tmoe-linux/containers/chroot/ubuntu-kinetic_arm64' not in /proc/mounts mount: 'devpts'->'/data/data/com.termux/files/home/.local/share/tmoe-linux/containers/chroot/ubuntu-kinetic_arm64/dev/pts': No such file or directory mount: '/dev/shm'->'/data/data/com.termux/files/home/.local/share/tmoe-linux/containers/chroot/ubuntu-kinetic_arm64/dev/shm': No such file or directory neofetch This might take a while. groupadd: GID '1000' already exists Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be REMOVED: systemd-resolved* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 951 kB disk space will be freed. (Reading database ... 16336 files and directories currently installed.) Removing systemd-resolved (251.4-1ubuntu7) ... Removing /etc/resolv.conf symlink to /run/systemd/resolve/stub-resolv.conf... Restoring previous resolv.conf... Processing triggers for dbus (1.14.0-2ubuntu3) ... (Reading database ... 16313 files and directories currently installed.) Purging configuration files for systemd-resolved (251.4-1ubuntu7) ... mode of '/etc/resolv.conf' retained as 0644 (rw-r--r--) nameserver 180.76.76.76 nameserver 2400:da00::6666 您已成功安装Container,之后可以输debian来进入ubuntu container. Congratulations on your successful installation of GNU/Linux container. After that, you can type debian to enter the container. 正在执行优化步骤,请勿退出! Optimization steps are in progress. Do not exit! apt install -y eatmydata Get:1 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic InRelease [267 kB] Get:2 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-updates InRelease [109 kB] Get:3 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-backports InRelease [99.9 kB] Get:4 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-security InRelease [109 kB] Err:1 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic InRelease gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed Err:2 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-updates InRelease gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed Err:3 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-backports InRelease gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed Err:4 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-security InRelease gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed Reading package lists... Done Get:1 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic InRelease [267 kB] Ign:2 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-updates InRelease Err:1 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic InRelease gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed Ign:3 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-backports InRelease Ign:4 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-security InRelease Ign:5 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-updates Release Ign:3 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-backports InRelease Ign:4 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-security InRelease Ign:5 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-updates Release Ign:3 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-backports InRelease Ign:4 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-security InRelease Ign:5 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-updates Release Err:3 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-backports InRelease Connection failed [IP: 39.155.141.16 80] Err:4 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-security InRelease Connection failed [IP: 39.155.141.16 80] Err:5 http://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-updates Release Connection failed [IP: 39.155.141.16 80] Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package eatmydata Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package eatmydata eatmydata apt reinstall -y perl-base Reading package lists... Done Building dependency tree... Done Reading state information... Done Reinstallation of perl-base is not possible, it cannot be downloaded. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. eatmydata apt install -y locales-all Reading package lists... Done Building dependency tree... Done Reading state information... Done Package locales-all is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source eatmydata apt install -y ^language-pack-zh Reading package lists... Done Building dependency tree... Done Reading state information... Done Configuring zh_CN environment... Generating locales (this might take a while)... zh_CN.UTF-8 eatmydata apt install -y curl bash: eatmydata: command not found 正在读取软件包列表... 完成 正在分析软件包的依赖关系树... 完成 正在读取状态信息... 完成 E: 无法定位软件包 curl Replacing http software source list with https ... 正在将http源替换为https ... 忽略:1 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic InRelease 忽略:2 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-updates InRelease 忽略:3 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-backports InRelease 忽略:4 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-security InRelease 忽略:1 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic InRelease 忽略:2 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-updates InRelease 忽略:3 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-backports InRelease 忽略:4 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-security InRelease 忽略:1 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic InRelease 忽略:2 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-updates InRelease 忽略:3 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-backports InRelease 忽略:4 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-security InRelease 错误:1 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic InRelease Could not handshake: The TLS connection was non-properly terminated. [IP: 39.155.141.16 443] 错误:2 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-updates InRelease Could not handshake: The TLS connection was non-properly terminated. [IP: 39.155.141.16 443] 错误:3 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-backports InRelease Could not handshake: The TLS connection was non-properly terminated. [IP: 39.155.141.16 443] 错误:4 https://mirrors.bfsu.edu.cn/ubuntu-ports kinetic-security InRelease Could not handshake: The TLS connection was non-properly terminated. [IP: 39.155.141.16 443]

Additional context

No response

@woshigenm woshigenm added the bug Something isn't working label Jan 22, 2023
@FurryR
Copy link

FurryR commented Jan 23, 2023

Tips:可以使用 pastebin.com 或 Github 附件来上传日志文件。

@2moe
Copy link
Owner

2moe commented Jan 24, 2023

我帮你简化一下错误信息。

可以解析域名 <mirrors.bfsu.edu.cn/ubuntu-ports> ,但是却连接失败。
对于 http, 出现了 Connection failed [IP: 39.155.141.16 80]
对于 https, 出现了 Could not handshake: The TLS connection was non-properly terminated. [IP: 39.155.141.16 443]


既然可以解析出 ip, 那就说明容器内的 aid_inet 用户组应该没问题。
既然 http 也出问题了,那就暂时忽略与 https 相关的 ca-certificates

解析出 ip 却无法访问。
可能是源服务器有问题,也可能是解析出来的 ip 有问题。

修改 /etc/resolv.conf,把它改成别的dns,再试试 apt clean; apt update; apt reinstall curl
修改 /etc/apt/sources.list,把它改成别的源,再试试。

@2moe 2moe changed the title 无法正常安装容器 Network connection failed Jan 24, 2023
@2moe 2moe changed the title Network connection failed Network connection failed in chroot Jan 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants