Project

General

Profile

Debian 8 to 9 » History » Version 6

Jack Aponte, 07/19/2018 08:28 PM
added mysql_upgrade to upgrade steps

1 1 Jamila Khan
{{lastupdated_at}} by {{lastupdated_by}}
2
3
{{>toc}}
4
5
h1. Debian 8 to 9
6
7
h2. Update sources list
8
9
<pre>
10
vim /etc/apt/sources.list
11
</pre>
12
13
<pre>
14
:%s/jessie/stretch/g
15
</pre>
16
17
h2. Upgrade the system
18
19
h3. Check for Necessary Disk Space
20
21
<pre>apt-get -o APT::Get::Trivial-Only=true dist-upgrade</pre>
22
23
h3. Update the sources
24
25
<pre>
26
apt-get update
27
</pre>
28
29
h3. Minimal Upgrade
30
31
<pre> apt-get upgrade</pre>
32
33
h3. Full Upgrade
34
35
<pre>
36
apt-get dist-upgrade
37
</pre>
38
39 6 Jack Aponte
h3. Upgrade MySQL databases (if MySQL/MariaDB installed)
40
41
<pre>
42
mysql_upgrade
43
</pre>
44
45 1 Jamila Khan
h2. Common problems
46
47
h3. iBackup
48
49
PT ticket #35194-19
50
51
header.pl and constants.pm are in the ibackup directory but perl on debian does not look in the local directory for @INC.
52 4 Jack Aponte
to fix copy both header.pl and Constants.pm into /etc/perl/
53 1 Jamila Khan
54
h3. backupninja
55
56 5 Jack Aponte
Until backupninja gets the fixes pushed out to the Debian repo (PT ticket #35353), errors like these may be reported by backupninja:
57
58
<pre>
59
    CRITICAL - 38 errors or warnings
60
May 27 01:00:03 Warning: The partition table for /dev/ram0 could not be saved.
61
May 27 01:00:03 Warning: The partition table for /dev/ram1 could not be saved.
62
May 27 01:00:03 Warning: The partition table for /dev/ram2 could not be saved.
63
</pre>
64
65
*Resolution:* add @partitions = no@ to job 15/in @15-info.sys@.
66 1 Jamila Khan
67 2 Jamila Khan
h3. samba-ad-dc
68
69
if Samba is in AD-DC mode, it and winbind fail.
70
do these commands, then try to run the upgrade again
71
72
<pre>
73
systemctl stop smbd nmbd winbind
74
systemctl disable smbd nmbd winbind
75
systemctl unmask samba-ad-dc
76
systemctl start samba-ad-dc
77
systemctl enable samba-ad-dc
78
</pre>
79
80
https://lists.samba.org/archive/samba/2017-July/209972.html
81
82 3 Jessie Lee
h3. Removing old versions of interpreters. 
83 1 Jamila Khan
84 3 Jessie Lee
PHP5 (and Ruby 2.1) are not removed by default and will still be used if loaded! 
85
If there is no need for these things to exist remove them with apt-get uninstall. 
86 1 Jamila Khan
87
https://www.howtoforge.com/tutorial/how-to-upgrade-debian-8-jessie-to-9-stretch/
Go to top