Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

Оглавление

Предупреждение

Данный метод подходит только для условий недостатка ресурсов и разворачивания контроллера на физическом сервере, а не на виртуальной машине. 


Предупреждение

Перед обновлением необходимо обязательно сделать резервную копию виртуальной машины на случай необходимости восстановления.

...

Отключение автоматических обновлений для MySQL

Останавливаем все будущие обновления mysql с помощью следующих команд:

Блок кода
themeRDark
sudo nano /etc/apt/preferences

Добавляем следующие строки в файл, чтобы приостановить обновление MySQL и все связанные с ним пакеты:

Блок кода
languagexml
themeMidnight
title/etc/apt/preferences
linenumberstrue
collapsetrue
Package: mysql-server
Pin: version 5.7*
Pin-Priority: -1

...

apt-mark hold mysql-client
sudo apt-mark hold mysql-community-client
sudo apt-mark hold mysql-community-server

Необходимо добавить следующую конфигурацию в файл /etc/apt/preferences.d/mysql:

Package: mysql-server Pin: version
Блок кода
themeRDark
sudo nano /etc/apt/preferences.d/mysql
Блок кода
languagexml
themeMidnight
title/etc/apt/preferences.d/mysql
linenumberstrue
collapsetrue

Добавляем следующие строки в файл, чтобы приостановить обновление MySQL и все связанные с ним пакеты:

Package: mysql-server
Pin: version 5.7*

...


Pin-Priority:

...

1001

...

Package:

...

mysql-client

...


Pin:

...

version

...

5.7*

...


Pin-Priority:

...

1001

...

Package:

...

mysql-community-server

...


Pin:

...

version

...

5.7*

...


Pin-Priority:

...

1001

...

Package:

...

mysql-community-client

...


Pin:

...

version

...

5.7*

...


Pin-Priority:

...

1001

...

Package:

...

libmysqlclient-dev

...


Pin:

...

version

...

5.7*

...


Pin-Priority:

...

1001

Поиск и установка обновлений пакетов

...

В ходе обновления будут предложены следующие вопросы от системы:

Image Modified

Блок кода
themeRDark
...
Removing eltex-auth-service-db (1.27-776) ...
Remove eltex_auth_service database? [y/N] n
...

Image Modified

Блок кода
themeRDark
...
Configuration file '/etc/rsyslog.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** rsyslog.conf (Y/I/N/O/D/Z) [default=N] ? n
...
Configuration file '/etc/rsyslog.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** rsyslog.conf (Y/I/N/O/D/Z) [default=N] ? n
...
Configuration file '/etc/snmp/snmpd.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** snmpd.conf (Y/I/N/O/D/Z) [default=N] ? n
...

...