#Corruption error as I was trying to install docker.

14 messages · Page 1 of 1 (latest)

hardy vector
#

I was following a guide for installing docker for mint specifically and so far things were looking good. I ran the command docker run hello-world to see if it would say "Hello from Docker!" which it did but right after that I noticed an odd sign from the update manager icon. I opened it and I see this in the screenshot. When I try to remove docker.list with sudo apt purge it gives me the following message. I'll use a timeshift to go back to before this since changing the mirror didn't work like the screenshot said but any suggestions for if this happens again?
E: Malformed entry 1 in list file /etc/apt/sources.list.d/docker.list (Suite)
E: The list of sources could not be read.

split gull
#

you have to rm the file

#

sudo rm -f /etc/apt/sources.list.d/docker.list

#

the file is simply badly formatted

#

you can just restore it by following the repository setup instructions again

#

or use the Ubuntu docker packages

hardy vector
#

I tried using the documentation for debian originally but it didn't work and after asking in the docker forums I was told it's because I'm on mint and not an officially supported distro and that I'd need to look up a different way for mint

split gull
#

remove the repository, apt update, and do apt search docker and install the packages you need

hardy vector
#

@split gull so I got it to install without any error showing in the update manager, however, I had docker.io installed from the software manager and now when i look at it through the software manager app it gives me an error message saying "The following packages have unmet dependencies:
containerd.io: Conflicts: containerd"

split gull
#

go to software sources -> maintenance -> remove foreign packages

#

and run sudo apt autoremove

hardy vector
#

hmm nothing shows in the foreign packages but I did run the autoremove which got rid of bridge-utils ubuntu-fan

hardy vector