tags: - arm - wanboard - debian categories: - informational comments: true

date: 2021-10-01 00:00:00

Upgrade debian on wanboard from jessie to stretch

apt update
apt dist-upgrade
change sources.list from jessie to stretch

Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
cd /etc/apt
ls
apt.conf  apt.conf.d  preferences.d  sources.list  sources.list.d  trusted.gpg  trusted.gpg~  trusted.gpg.d

cp sources.list sources.list.old
vi sources.list
apt update
Get:1 http://security.debian.org stretch/updates InRelease [53.0 kB]
Ign http://ftp.us.debian.org stretch InRelease
..
Get:22 http://ftp.us.debian.org stretch/non-free Sources [95.3 kB]
Get:23 http://ftp.us.debian.org stretch/main armhf Packages [9,380 kB]
Get:24 http://ftp.us.debian.org stretch/contrib armhf Packages [50.1 kB]
Get:25 http://ftp.us.debian.org stretch/non-free armhf Packages [71.8 kB]
Fetched 22.1 MB in 20s (1,072 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
591 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: There is no public key available for the following key IDs:
112695A0E562B32A
W: There is no public key available for the following key IDs:
648ACFD622F3D138
W: There is no public key available for the following key IDs:
648ACFD622F3D138
 NO_PUBKEY 0E98404D386FA1D9
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 112695A0E562B32A
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.76KHfTElFn --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyring /etc/apt/trusted.gpg.d/rcn-ee-archive-2015.gpg --keyserver keyserver.ubuntu.com --recv-keys 112695A0E562B32A
gpg: requesting key E562B32A from hkp server keyserver.ubuntu.com
gpg: key CAA96DFA: public key "Debian Security Archive Automatic Signing Key (10/buster) <ftpmaster@debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.VskFyakD0f --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyring /etc/apt/trusted.gpg.d/rcn-ee-archive-2015.gpg --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
gpg: requesting key 22F3D138 from hkp server keyserver.ubuntu.com
gpg: key 3CBBABEE: public key "Debian Archive Automatic Signing Key (10/buster) <ftpmaster@debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.NNcmpZjw0m --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyring /etc/apt/trusted.gpg.d/rcn-ee-archive-2015.gpg --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
gpg: requesting key 22F3D138 from hkp server keyserver.ubuntu.com
gpg: key 3CBBABEE: "Debian Archive Automatic Signing Key (10/buster) <ftpmaster@debian.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.UXZiOefZGY --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyring /etc/apt/trusted.gpg.d/rcn-ee-archive-2015.gpg --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
gpg: requesting key 386FA1D9 from hkp server keyserver.ubuntu.com
gpg: key 8DD47936: public key "Debian Archive Automatic Signing Key (11/bullseye) <ftpmaster@debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
rm /var/lib/apt/lists/partial/*
rm /var/lib/apt/lists/*
apt update
apt install tmux
dpkg -l |awk '{print $2}'>/tmp/installed.txt
apt remove --purge --auto-remove \
  alsa-base libasound2 libasound2-data libavahi-core7 libavahi-common3 \
  libavahi-common-data libcairo2 libfreetype6 libpango-1.0-0  libpng12-0 make

apt remove --purge --auto-remove \
  xfce4-volumed xfce4-settings xfce4-session xserver-common xserver-xorg-core \
  xfdesktop4

apt remove --purge --auto-remove \
   wireless-tools wpasupplicant x11-xserver-utils xauth xorg-docs-core
apt remove --purge --auto-remove \
  apache2-bin wvdial apache2-data apache2-utils build-essential alsa-utils
apt remove --purge --auto-remove \
  fail2ban git git-doc git-core ufw desktop-file-utils dosfstools
apt remove --purge --auto-remove \
  nano  mplayer2 ntfs-3g plexmediaserver
apt remove --purge --auto-remove \
  wget vim logwatch memtester libgraphite2-3
apt dist-upgrade

referece

https://unix.stackexchange.com/questions/75807/no-public-key-available-on-apt-get-update https://pimylifeup.com/upgrade-raspbian-stretch-to-raspbian-buster/