Skip to content

Instantly share code, notes, and snippets.

@sbellver
Created September 7, 2020 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbellver/d3df4f1f4a3024ebae3adda48e622e2e to your computer and use it in GitHub Desktop.
Save sbellver/d3df4f1f4a3024ebae3adda48e622e2e to your computer and use it in GitHub Desktop.
Errores para actualizar Ubuntu en LXC
1. Tras un do-release-upgrade salen errores de codificación ASCII <-> UTF-8, se puede solventar así:
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 do-release-upgrade
2. Si no salen versiones compatibles para actualizar, se puede forzar editando el fichero /var/lib/update-manager/meta-release
Eliminando las releases que no son compatibles y poniendo a 1 el campo Supported de la versión a la que queramos actualizar
Dist: eoan
Name: Eoan Ermine
Version: 19.10
Date: Thu, 17 October 2019 19:10:00 UTC
Supported: 1
Description: This is the 19.10 release
Release-File: http://archive.ubuntu.com/ubuntu/dists/eoan-updates/Release
ReleaseNotes: http://changelogs.ubuntu.com/EOLReleaseAnnouncement
UpgradeTool: http://archive.ubuntu.com/ubuntu/dists/eoan-updates/main/dist-upgrader-all/current/eoan.tar.gz
UpgradeToolSignature: http://archive.ubuntu.com/ubuntu/dists/eoan-updates/main/dist-upgrader-all/current/eoan.tar.gz.gpg
3. Tras el reboot el contenedor puede que no quiera arrancar. Puede deberse por variso motivos.
3.1 Proxmox no está actualizado y no soporta la versión
En este caso, tendremos que modificar el fichero /usr/share/perl5/PVE/LXC/Setup/Ubuntu.pm y añadir la versión para que sea compatible
3.2 Otros errores. Para comprobarlos, arrancamos y mandamos la salida a un log: lxc-start -n ID -F -l DEBUG -o /tmp/lxc-ID.log
En nuestro caso, el error era 'unable to activate storage 'local' - directory is expected to be a mount point but is not mounted: '/var/lib/vz''
Para solventarlo, eliminamos del fichero /etc/pve/storage.cfg lo siguiente:
dir: local
path /var/lib/vz
content rootdir,vztmpl,snippets,images,iso
maxfiles 0
mkdir 0
is_mountpoint 1
Después de este cambio la máquina arrancó con normalidad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment