Skip to content

Instantly share code, notes, and snippets.

@ybizeul
Created July 18, 2020 08:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ybizeul/6705f9a58d34244a25a0faf187fb5e3f to your computer and use it in GitHub Desktop.
Save ybizeul/6705f9a58d34244a25a0faf187fb5e3f to your computer and use it in GitHub Desktop.
NAbox quick and dirty dist-upgrade
1/ Replace any mention of 'jessie' in /etc/apt/sources.list by 'stable'. It should look more or less like this :
deb http://http.us.debian.org/debian stable main
deb-src http://http.us.debian.org/debian stable main
deb http://security.debian.org/ stable/updates main
deb-src http://security.debian.org/ stable/updates main
deb http://http.us.debian.org/debian stable-updates main
deb-src http://http.us.debian.org/debian stable-updates main
2/
apt-get update
apt-get upgrade
Any message asking what to do with existing versions of the file, answer "N" (keep existing)
When asked "Restart services during package upgrades without asking?" answer Yes
In the end it will probably fail, then :
dpkg -P collectd-core
apt-get install collectd-core
apt-get upgrade
apt-get autoremove
apt-get dist-upgrade
When asked about replacing sysctl.conf : N
When asked about configuring openssh-server : keep the local version currently installed
When asked about tools.conf : N
At this point it fails on initramfs, we need to maje some room in /boot
mkdir /root/boot && mv /boot/*-3.16.* /root/boot/
apt-get dist-upgrade
apt-autoremove
apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io aufs-tools
3/ Edit /etc/docker/daemon.json and replace "graph" by "data-root" :
{
"data-root": "/opt/docker",
"bridge": "none"
}
4/ Reboot
BEWARE that after this you will probably not be able to use NAbox upgrades through Web UI. You will have to wait for NAbox v3 later this year.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment