Murphy's picture

Hello all,
i was pleased to see 17.1.1 as a template.
Since I have built all my containers on turnkey containers, 
I'm now trying to upgrade. (core, media, files and wordpress are still to come).
The simple dist-upgrade doesn't seem to work ?!

Are the repositories still included with updates, or do I have to enter them manually now?

Can you maybe give me a hint how it works ?
I hope I don't have to redo everything. :-(

Jeremy Davis's picture

One is to launch a new server and migrate your data from your old server to your new one. Personally that's usually what I do as it means that there is no cruft build up and I can leave my old server running untouched, until I have the new one working. You can use TKLBAM to do that if you wish, or do it manually if you prefer. E.g. WordPress just requires you to migrate the files (/var/www/wordpress) and the DB ('wordpress'). Others might require more poking around.

The other way is to do a Debian style "in place" upgrade. You will also need to download the new TurnKey apt repo signing key for Bullseye. This should work:

for repo in main security; do
    wget -O /$keyfile $url/$keyfile
    gpg --no-default-keyring --keyring /$keyring --import /$keyfile
    rm /$keyfile

The corresponding sources.list (and security.list) lines should like this (respectively):

# grep turnkey /etc/apt/sources.list.d/sources.list 
deb [signed-by=/usr/share/keyrings/tkl-bullseye-main.gpg] bullseye main
# grep turnkey /etc/apt/sources.list.d/security.sources.list 
deb [signed-by=/usr/share/keyrings/tkl-bullseye-security.gpg] bullseye-security main

Hopefully that info is of value?! Please feel free to ask for further details if you have more questions and/or hit any issues.

Regardless of which path you take, I would encourage you to ensure that you back up everything prior. That way, worst case scenario, you can wind back to a working state.

Murphy's picture

Hello Jeremy, 
I think I'll use the second method.
It's a pity that there is no automatic method for upgrading yet.
Would save a lot of work ;-)

Thanks for your direct answer !

Jeremy Davis's picture

No worries and good luck!

Please let us know how you go and if you need a hand, please feel free to ask.

Add new comment