Coder Social home page Coder Social logo

Comments (2)

gibmat avatar gibmat commented on August 22, 2024

@maxkratz, what version of lxc-templates were you using? Vanilla lxc-templates creates a line similar to

deb http://security.debian.org/ bullseye-security main

and lxc-templates as packaged in bookworm produces a line like

deb http://security.debian.org/debian-security bullseye-security main

Your reported apt line doesn't match either, so I'm not sure exactly what is happening to give you a bad URL.

from lxc-templates.

maxkratz avatar maxkratz commented on August 22, 2024

@maxkratz, what version of lxc-templates were you using? Vanilla lxc-templates creates a line similar to

deb http://security.debian.org/ bullseye-security main

and lxc-templates as packaged in bookworm produces a line like

deb http://security.debian.org/debian-security bullseye-security main

I was using version 3.0.4-5 on Debian GNU/Linux 11 (bullseye):

$ apt show lxc-templates         
Package: lxc-templates
Version: 3.0.4-5
Architecture: amd64
Installed: yes
Priority: optional
Essential: no
Section: admin
Source: lxc-templates
Origin: Debian
Maintainer: pkg-lxc <[email protected]>
Installed-Size: 513 KB
Depends: lxc (>= 1:3.0.2-1~exp+1)
Recommends: 
  bridge-utils
  busybox-static
  cloud-image-utils | cloud-utils
  debootstrap | cdebootstrap
  distro-info
  mmdebstrap
  openssl
  rsync
  uuid-runtime
  xz-utils
Suggests: qemu-user-static
Homepage: https://linuxcontainers.org/
Download-Size: 85 KB
APT-Sources: http://mirror.hetzner.com/debian/ oldstable/main amd64 Packages
Description: Linux Containers userspace tools (templates)
 Containers are insulated areas inside a system, which have their own namespace
 for filesystem, network, PID, IPC, CPU and memory allocation and which can be
 created using the Control Group and Namespace features included in the Linux
 kernel.
 .
 This package contains the templates.

However, as a workaround, I was able to resolve the issue with these commands:

$ /usr/sbin/chroot /var/cache/lxc/debian/rootfs-bullseye-amd64 apt-get update
$ /usr/sbin/chroot /var/cache/lxc/debian/rootfs-bullseye-amd64 apt-get dist-upgrade

After running these commands, I found the following content in the /etc/apt/sources.list of the container:

$ cat /etc/apt/sources.list
deb http://deb.debian.org/debian          bullseye         main
deb http://security.debian.org/debian-security bullseye/updates main

from lxc-templates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.