Проект

Общее

Профиль

Апгрейд с stretch на bookworm » История » Версия 10

« Предыдущее - Версия 10/14 (Разница(diff)) - Следующее » - Текущая версия
Владимир Ипатов, 03.07.2024 22:18


Апгрейд с stretch на bookworm

1) обновить пакеты до bookworm. Конфиги - сохранять локальные варианты.
2) удалить пакеты, связанные с xen 4.8, а также с другими версиями установленными ,кроме 4.17
3) пофиксить симлинки:

rm /usr/lib/xen
ln -s /usr/lib/xen-4.17 /usr/lib/xen
rm /boot/initrd.img-xenU
ln -s /boot/initrd.img-6.1.0-22-amd64 /boot/initrd.img
rm /boot/vmlinuz-xenU
ln -s /boot/vmlinuz-6.1.0-22-amd64 /boot/initrd.img

4) поставить python 2.7 в conda:

mkdir /conda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /conda/miniconda.sh
bash /conda/miniconda.sh -b -u -p /conda
rm /conda/miniconda.sh 
/conda/bin/conda init bash
relogin
conda update -n base -c defaults conda
conda create -n ganeti python=2.7 anaconda
conda activate ganeti
в окружении ganeti
pip install ipaddr
pip install simplejson
pip install pyinotify
pip install pyinotify
pip install PyOpenSSL==16.2.0
conda clean -t

5) заменить /usr/bin/python2.7 на conda

mv /usr/bin/python2.7 ~
ln -s /conda/envs/ganeti/bin/python2.7 /usr/bin/python2.7

8) поставить libldap из debian 11:
http://ftp.us.debian.org/debian/pool/main/o/openldap/libldap-2.4-2_2.4.57+dfsg-3+deb11u1_amd64.deb

7) установить ganeti-2.10

aptitude purge ganeti ganeti-2.16 ganeti-3.0 ganeti-haskell-2.16 ganeti-haskell-3.0 ganeti-htools-2.16 ganeti-htools-3.0

установить ganeti:
исправить в /etc/apt/sources.list.d/sci-dev.list

deb http://sci-dev.skycover.ru/apt bookworm main

aptitude update
aptitude install -V ganeti ganeti-2.10 ganeti-haskell-2.10 ganeti-htools-2.10
aptitude install sci-scripts sci-config

должны установиться пакеты версий 3.0.9