lima icon indicating copy to clipboard operation
lima copied to clipboard

can not download some libs from ubuntu (`E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/fuse3/libfuse3-3_3.10.3-2_amd64.deb Connection failed [IP: 91.189.88.152 80]`)

Open fungbo opened this issue 3 years ago • 7 comments

please find the error logs below:

[ 27.446390] cloud-init[929]: Ign:1 http://archive.ubuntu.com/ubuntu impish/universe amd64 libfuse3-3 amd64 3.10.3-2 [ 27.576045] cloud-init[929]: Ign:2 http://archive.ubuntu.com/ubuntu impish/universe amd64 fuse3 amd64 3.10.3-2 [ 29.584675] cloud-init[929]: Ign:1 http://archive.ubuntu.com/ubuntu impish/universe amd64 libfuse3-3 amd64 3.10.3-2 [ 30.164695] cloud-init[929]: Ign:2 http://archive.ubuntu.com/ubuntu impish/universe amd64 fuse3 amd64 3.10.3-2 [ 33.920850] cloud-init[929]: Err:1 http://archive.ubuntu.com/ubuntu impish/universe amd64 libfuse3-3 amd64 3.10.3-2 [ 33.923462] cloud-init[929]: Connection failed [IP: 91.189.88.152 80] [ 34.289700] cloud-init[929]: Err:2 http://archive.ubuntu.com/ubuntu impish/universe amd64 fuse3 amd64 3.10.3-2 [ 34.289831] cloud-init[929]: Connection failed [IP: 91.189.88.152 80] [ 34.329424] cloud-init[929]: E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/fuse3/libfuse3-3_3.10.3-2_amd64.deb Connection failed [IP: 91.189.88.152 80] [ 34.329537] cloud-init[929]: E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/fuse3/fuse3_3.10.3-2_amd64.deb Connection failed [IP: 91.189.88.152 80] [ 34.329858] cloud-init[929]: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? [ 34.330350] cloud-init[929]: LIMA| WARNING: Failed to execute /mnt/lima-cidata/boot/30-install-packages.sh [ 34.330717] cloud-init[929]: LIMA| Executing /mnt/lima-cidata/boot/40-install-containerd.sh [ 34.346595] cloud-init[929]: + [ != 1 ]

The process was stuck at [hostagent] Waiting for the essential requirement 4 of 5: "/etc/fuse.conf to contain "user_allow_other""

So can I change the ubuntu source list? If yes, how to do that?

Thanks in advance

fungbo avatar Jan 12 '22 09:01 fungbo

Tried many times, it's working when I run limactl start docker.yaml, still failed to run limactl start

fungbo avatar Jan 12 '22 14:01 fungbo

Is this related to GFW?

Could you try modifying /etc/apt/* with limactl shell docker, and then limactl stop docker, limactl start docker?

AkihiroSuda avatar Jan 13 '22 06:01 AkihiroSuda

+1 here, don't think it's gfw related, could ping on mac shell.

zinking avatar Feb 09 '22 02:02 zinking

You can try to use the fedora image, fedora can use the nearest pkg source automatically.

fedora.yaml

# This example requires Lima v0.7.0 or later.
images:
- location: "https://download.fedoraproject.org/pub/fedora/linux/releases/35/Cloud/x86_64/images/Fedora-Cloud-Base-35-1.2.x86_64.qcow2"
  arch: "x86_64"
  digest: "sha256:fe84502779b3477284a8d4c86731f642ca10dd3984d2b5eccdf82630a9ca2de6"
- location: "https://download.fedoraproject.org/pub/fedora/linux/releases/35/Cloud/aarch64/images/Fedora-Cloud-Base-35-1.2.aarch64.qcow2"
  arch: "aarch64"
  digest: "sha256:c71f2e6ce75b516d565e2c297ea9994c69b946cb3eaa0a4bbea400dbd6f59ae6"
mounts:
- location: "~"
- location: "/tmp/lima"
  writable: true
limactl start fedora.yaml

export LIMA_INSTANCE=fedora

alias docker="lima nerdctl"

docker images

yanyixing avatar Feb 18 '22 11:02 yanyixing

@yanyixing it's not really near or far, because on the mac that url is working actually. but not inside the vm though

zinking avatar Feb 22 '22 04:02 zinking

@zinking ubuntu download pkg from the archive.ubuntu.com default, download pkg from this site may be failed if you are in China mainland

yanyixing avatar Feb 22 '22 13:02 yanyixing

https://fridge.ubuntu.com/2022/06/01/ubuntu-21-10-impish-indri-reaches-end-of-life-on-july-14-2022/

mxlxm avatar Sep 21 '22 06:09 mxlxm