pearsonified is struggling to update Docker from version 19.03.13 to 20.10.0 or 24.0.7 on a DigitalOcean Droplet running Discourse. Attempts to follow existing guides, including Jay’s solution, fail due to a persistent “malformed entry 58” error in /etc/apt/sources.list, which blocks apt update. pfaffman advises upgrading the OS or, preferably, migrating to a fresh server using rsync, warning that in-place upgrades are risky and time-consuming. Jagster suggests manually editing sources.list to remove the problematic line, noting that DO’s backports may be involved but are likely harmless. pearsonified asks if DO’s snapshot feature could help, but Jagster confirms it creates an exact copy, including the broken config. After removing the offending line, pearsonified successfully upgrades Ubuntu and Docker, but the site becomes unreachable (“The site can’t be reached” → 502 error). Running launcher rebuild restores the site pearsonified. pfaffman congratulates them and marks the upgrade as the solution, noting the rebuild was the final necessary step. The thread highlights the fragility of in-place upgrades on aging systems and the efficiency of migration over repair.
More context: When I try Jay’s solution, I receive the following errors:
E: Malformed entry 58 in list file /etc/apt/sources.list (URI parse)
E: The list of sources could not be read.
Curiously, this error repeats 3 times. (Perhaps because I’ve tried to do this too many times and have installed multiple flawed versions of the same thing? If so, I’ve no idea how to clean that up…)
Don’t struggle I’ve done both. Timewise starting new one is faster, but you must add ssh keys to get rsync working. It takes few minutes, if you’ e never done it before — but it is easy.
Upgrading Ubuntu takes longer, because you must take snapshot before. After that there is plenty of questions, mostly about configurations, and those takes some times too to make your mind (use old ones is my advise if you take that road). But you can’t totally sure if something old is left behind.