Public Cloud OVHcloud - Mise à jour Debian d'une instance manuelle ?
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

Mise à jour Debian d'une instance manuelle ?

Von
RodolpheR
Erstellungsdatum 2020-10-28 15:24:47 (edited on 2024-09-04 11:03:31) in Public Cloud OVHcloud

Bonjour,
j'ai une instance créer avec une image Debian 9 Strecht avec un disque attaché où est intallé un serveur Yunohost pour une association. J'ai mis à jour l'instance pour passer à la version Debian 10 Buster, la migration se fait avec des scripts bash, tout c'est bien passer, sauf que si je vais sur mon espace, mon instance est toujours marquée comme une version Debian 9 Strecht, alors qu'en réalité tout le système est upgrader sur Debian 10 Buster.
Ma question est: est-il possible de manuellement éditer un fichier pour que soit pris en compte la migration effectuée, sans devoir tout effacer et réinstaller ?

Ou bien est-ce que ce n'est finalement pas important ?
Sachant que j'ai bien:

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

$ cat /etc/apt/sources.list
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
## or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.debian.tmpl
###

# See http://www.debian.org/releases/stable/i386/release-notes/ch-upgrading.html
# for how to upgrade to newer versions of the distribution.
deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free

## Major bug fix updates produced after the final release of the
## distribution.
deb http://security.debian.org/ buster/updates main contrib non-free
deb-src http://security.debian.org/ buster/updates main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free

# Uncomment the following two lines to add software from the 'backports'
## repository.
##
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
# deb http://deb.debian.org/debian buster-backports main contrib non-free
# deb-src http://deb.debian.org/debian buster-backports main contrib non-free


1 Antwort ( Latest reply on 2020-11-09 08:03:11 Von
ArnaudM18
)

osef de ce qui est écrit sur le panel, c'est juste l'image qui a été utilisée au moment de l'install... Ce qui compte c'est ce qui tourne dans la VM en prod :)

De memoire l'upgrade vers debian 10 met a jour ce fichier.
Sinon oui, aucun soucis pour le changer a la main!