Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
aims-desktop
aims-desktop-metapackages
Commits
99cf4689
Commit
99cf4689
authored
Jun 03, 2021
by
Jonathan Carter
Browse files
add initial aims-release-upgrade from buster
parent
4d5b5ab4
Changes
1
Hide whitespace changes
Inline
Side-by-side
2020.1/aims-desktop/aims-desktop-2020/bin/aims-release-upgrade
0 → 100644
View file @
99cf4689
#!/bin/sh
# Keep this for next time.
if
[
"
$1
"
!=
"-f"
]
;
then
echo
"AIMS Desktop 2022.1 has not yet been released,"
echo
"add '-f' to continue upgrading anyway."
exit
1
fi
# Set interface to noninteractive
export
DEBIAN_FRONTEND
=
"noninteractive"
#export DPKG_OPTIONS='-o Dpkg::Options::="--force-confold"'
# Resume if we have a partial install...
echo
" * Checking whether your Debian 10 Buster system is in a consistent state."
echo
" * Configuring all packages..."
dpkg
--configure
-a
echo
" * Checking all packages completed installing..."
apt-get
-f
install
||
'echo "Unable to correct; Please fix your system first." && exit 1'
# Update buster
echo
"Checking whether your Debian 10 Bullseye system is up to date."
echo
" * Updating package list..."
apt-get
-qq
update
echo
" * Downloading upgrade package set..."
apt-get
$DPKG_OPTIONS
--yes
--quiet
--download-only
dist-upgrade
echo
" * Performing initial upgrade (safe upgrade)..."
apt-get
$DPKG_OPTIONS
--yes
--quiet
upgrade
echo
" * Completeing full upgrade (dist-upgrade)..."
apt-get
$DPKG_OPTIONS
--yes
--quiet
full-upgrade
echo
" * Remove packages that are no longer needed... "
apt-get
-y
autoremove
# Update to bullseye
echo
" * Commencing upgrade from Debian 10 Buster to Debian 11 Bullseye."
echo
" * Updating sources..."
for
i
in
/etc/apt/sources.list.d/
*
.list
;
do
egrep
'trusty|xenial|bionic|artful|cosmic|disco'
$i
&&
mv
-f
$i
$i
.disabled
;
done
sed
--in-place
"s/buster/bullseye/g"
/etc/apt/sources.list /etc/apt/sources.list.d/
*
2> /dev/null
echo
" * Updating package list..."
apt
--quiet
update
echo
" * Downloading upgrade package set..."
apt-get
$DPKG_OPTIONS
--yes
--quiet
--download-only
dist-upgrade
echo
" * Performing initial upgrade (safe upgrade)..."
apt-get
$DPKG_OPTIONS
--yes
--quiet
upgrade
echo
" * Completeing full upgrade (dist-upgrade)..."
apt-get
$DPKG_OPTIONS
--yes
--quiet
full-upgrade
echo
" * Re-install AIMS Desktop metapackage..."
# re-installing ensures that all recommends, including new ones are installed
apt-get
$DPKG_OPTIONS
--yes
--quiet
remove aims-desktop
apt-get
$DPKG_OPTIONS
--yes
--quiet
install
aims-desktop
echo
" * Remove packages that are no longer needed... "
apt-get
$DPKG_OPTIONS
--yes
--quiet
autoremove
# R packages must be re-compiled against current version of R
# including the IRkernel we installed for stretch
rm
-rf
/usr/local/lib/R/site-library/
*
rm
-rf
/usr/local/share/jupyter/kernels/ir
apt-get
-y
install
r-cran-irkernel
aims-install-rstudio
echo
" * R has been upgraded. Please re-install your locally installed R packages."
echo
" * Note r-cran-irkernel is now in the AIMS PPA and in AIMS Desktop by default."
# reboot
echo
echo
" * Upgrade to Debian 11 bullseye seems to have completed successfully."
echo
" * Please reboot your system now!"
echo
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment