Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'colima update' fails with error message about Ubuntu Mantic Release file #1225

Open
1 of 5 tasks
breun opened this issue Dec 18, 2024 · 7 comments
Open
1 of 5 tasks

Comments

@breun
Copy link

breun commented Dec 18, 2024

Description

I noticed the colima 0.8.1 changelog says that the runtime can be updated using colima update, but when I try it, it fails like this:

❯ colima update
INFO[0000] refreshing package manager ...                context=docker
FATA[0001] error at 'refreshing package manager': error running [lima sh -c sudo apt-get update -y], output: "E: The repository 'http://ports.ubuntu.com/ubuntu-ports mantic Release' no longer has a Release file.", err: "exit status 100"

Version

❯ colima version && limactl --version && qemu-img --version
colima version v0.8.1
git commit: 

runtime: docker
arch: aarch64
client: v27.3.1
server: v27.1.1
limactl version 1.0.2
qemu-img version 9.2.0
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers

Operating System

  • macOS Intel <= 13 (Ventura)
  • macOS Intel >= 14 (Sonoma)
  • Apple Silicon <= 13 (Ventura)
  • Apple Silicon >= 14 (Sonoma)
  • Linux

Output of colima status

❯ colima status
INFO[0000] colima is running using macOS Virtualization.Framework 
INFO[0000] arch: aarch64                                
INFO[0000] runtime: docker                              
INFO[0000] mountType: sshfs                             
INFO[0000] socket: unix:///Users/breun/.colima/default/docker.sock

Reproduction Steps

  1. Run colima update.
  2. I get the error in the description.

Expected behaviour

I expected the update to succeed.

Additional context

No response

@abiosoft
Copy link
Owner

This is a strange one, does it still happen after a colima restart?

@breun
Copy link
Author

breun commented Dec 18, 2024

Yes, I still get the same error after a colima restart:

❯ colima start
INFO[0000] starting colima                              
INFO[0000] runtime: docker                              
INFO[0001] starting ...                                  context=vm
INFO[0013] provisioning ...                              context=docker
INFO[0014] starting ...                                  context=docker
INFO[0015] done                                         
❯ colima update
INFO[0000] refreshing package manager ...                context=docker
FATA[0001] error at 'refreshing package manager': error running [lima sh -c sudo apt-get update -y], output: "E: The repository 'http://ports.ubuntu.com/ubuntu-ports mantic Release' no longer has a Release file.", err: "exit status 100" 
❯ colima restart
INFO[0000] stopping colima                              
INFO[0000] stopping ...                                  context=docker
INFO[0000] stopping ...                                  context=vm
INFO[0001] done                                         
INFO[0004] starting colima                              
INFO[0004] runtime: docker                              
INFO[0004] starting ...                                  context=vm
INFO[0017] provisioning ...                              context=docker
INFO[0018] starting ...                                  context=docker
INFO[0019] done                                         
❯ colima update 
INFO[0000] refreshing package manager ...                context=docker
FATA[0001] error at 'refreshing package manager': error running [lima sh -c sudo apt-get update -y], output: "E: The repository 'http://ports.ubuntu.com/ubuntu-ports mantic Release' no longer has a Release file.", err: "exit status 100" 

@abiosoft
Copy link
Owner

Oh, what version of Colima were you on before the update?

@breun
Copy link
Author

breun commented Dec 18, 2024

I've just upgraded from 0.8.0 to 0.8.1, but this may be the first time I attempted to run colima update and I've upgraded the colima version many times in the past already.

@mima0815
Copy link

mima0815 commented Dec 18, 2024

Same here:
update colima from 0.8.0 to 0.8.1

it seems Ubuntu Mantic is out of support and they removed the "release" from it

is see you updated the images to ubuntu 24 lts. i then we need to update to use the new images

colima status

INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: virtiofs
INFO[0000] socket: unix:///Users/hiddenuser/.colima/default/docker.sock

colima update

INFO[0000] refreshing package manager ...                context=docker
FATA[0001] error at 'refreshing package manager': error running [lima sh -c sudo apt-get update -y], output: "E: The repository 'http://ports.ubuntu.com/ubuntu-ports mantic Release' no longer has a Release file.", err: "exit status 100"

Update via colima ssh:

sudo apt-get update

Ign:1 http://ports.ubuntu.com/ubuntu-ports mantic InRelease
Ign:2 http://ports.ubuntu.com/ubuntu-ports mantic-updates InRelease
Ign:3 http://ports.ubuntu.com/ubuntu-ports mantic-backports InRelease
Ign:4 http://ports.ubuntu.com/ubuntu-ports mantic-security InRelease
Err:5 http://ports.ubuntu.com/ubuntu-ports mantic Release
  404  Not Found [IP: 185.125.190.39 80]
Err:6 http://ports.ubuntu.com/ubuntu-ports mantic-updates Release
  404  Not Found [IP: 185.125.190.39 80]
Err:7 http://ports.ubuntu.com/ubuntu-ports mantic-backports Release
  404  Not Found [IP: 185.125.190.39 80]
Err:8 http://ports.ubuntu.com/ubuntu-ports mantic-security Release
  404  Not Found [IP: 185.125.190.39 80]
Get:9 https://download.docker.com/linux/ubuntu mantic InRelease [48.8 kB]
Reading package lists... Done
E: The repository 'http://ports.ubuntu.com/ubuntu-ports mantic Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports mantic-updates Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports mantic-backports Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports mantic-security Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

@mima0815
Copy link

i recreate my colima instance with colima delete and colima start then update works again (new ubuntu image)

@breun
Copy link
Author

breun commented Dec 22, 2024

I also recreated my instance, and now have an instance based on Noble Numbat (Ubuntu 24.04) instead of Mantic Minotaur (Ubuntu 23.10), and colima update works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants