After this operation, 11.1 MB disk space will be freed. I just tried your exact steps on a Debian 10 droplet. Sign in https://wiki.debian.org/MaintainerScripts. You signed in with another tab or window. Processing triggers for systemd (241-7~deb10u4) Jan 04 11:10:47 debian-s-1vcpu-2gb-ams3-01 dockerd[1553]: time="2021-01-04T11:10:47.217998329Z" level=info msg="API listen on /var/run/docker.sock". Setting up docker-ce (5:19.03.14~3-0~debian-buster) [.] Starting Docker: dockerinvoke-rc.d: initscript docker, action "start" failed. privacy statement. I'll try to do some digging, but perhaps @tianon or @seemethere knows? Setting up docker-ce (5:20.10.1~3-0~debian-buster) invoke-rc.d: could not determine current runlevel, apt install -V --no-install-recommends docker-ce=5:19.03, docker-ce (5:20.10.1~3-0~debian-buster => 5:19.03.14~3-0~debian-buster). It is definitely supposed to run the postinst (any version comparison would be in the package itself, and I don't think debhelper adds anything like that by default). Generally, downgrade behavior is undefined (as noted), but just to be sure, I ran a container with Buster (and the bits necessary for Docker-in-Docker to work), installed Docker 20.10.x, then downgraded it to 19.03.x and noted that the postinst script did try to run (it failed, but that's likely due to my container not having a proper init system, so it wasn't able to accurately detect the current state of the service): Orthogonal, but I actually noticed that error in another issue where the system was running with systemd, but it still tried to invoke the other init scripts. Apparently systemd also converts older init scripts to systemd units automatically, but should skip that if it finds a matching systemd service/unit (could it be it fails to detect that?). Output of the downgrade is below; I don't see post-installation script in the output (but possibly it's not shown if successful? dpkg: warning: downgrading docker-ce from 5:20.10.1~3-0~ubuntu-focal to 5:19.03.14~3-0~ubuntu-focal, (Reading database 95261 files and directories currently installed.). Already on GitHub? Some docs here; https://wiki.debian.org/MaintainerScripts. This is the same procedure as upgrading, but swapping versions. Wondering if postinst / postinst configure does a version comparison, and only performs the step if "new version > old version" ? downgrade of docker-ce "deb" packages does not automatically restart docker service, apt-get install --allow-downgrades docker-ce=5:19.03.14~3-0~ubuntu-focal. 1 upgraded, 0 newly installed, 0 to remove and 46 not upgraded. Please visit this page for more details on how to install Docker Engine - Community for Ubuntu: Install Docker Engine - Community (Version: 19.03.12) (Ubuntu), https://docs.docker.com/install/linux/docker-ce/ubuntu/. similar to "post-install") that needs to be configured in the deb packages to force a post-downgrade restart? Perhaps this is the expected behavior for downgrades, but I wasn't sure, so posting here as a ticket. Have a question about this project? apt install -V --no-install-recommends docker-ce, docker-ce-cli (5:20.10.1~3-0~debian-buster). Sign up for a free GitHub account to open an issue and contact its maintainers and the community. dpkg: error processing package docker-ce (--configure): installed docker-ce package post-installation script subprocess returned error exit status 1. By clicking Sign up for GitHub, you agree to our terms of service and After this operation, 11.1 MB of additional disk space will be used. Get:1 https://download.docker.com/linux/debian buster/stable amd64 docker-ce amd64 5:19.03.14~3-0~debian-buster [22.7 MB], dpkg: warning: downgrading docker-ce from 5:20.10.1~3-0~debian-buster to 5:19.03.14~3-0~debian-buster, (Reading database 27560 files and directories currently installed.). 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 30 not upgraded. Well occasionally send you account related emails. When downgrading docker-ce to an older version, the downgrade completes succesfully, but doesn't restart the daemon, causing the previous version to still be running; After the downgrade completed, docker version shows that the daemon is still running the version pre-downgrade: However, checking the version of dockerd shows that the downgrade was successful: Manually restarting the docker service resolves this situation: Note that in the reverse situation (upgrade 19.03 to 20.10), no manual restart is required: The text was updated successfully, but these errors were encountered: So perhaps this is the expected behaviour for downgrades of deb packages, but it could also be that there's a separate hook ("post-downgrade"? Errors were encountered while processing: E: Sub-process /usr/bin/dpkg returned an error code (1), apt install -V --no-install-recommends docker-ce=5:19.03*, Selected version '5:19.03.14~3-0~debian-buster' (Docker CE:buster [amd64]) for 'docker-ce'. to your account. The following packages were automatically installed and are no longer required: The following packages will be DOWNGRADED: 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 46 not upgraded. Run 'apt list --upgradable' to see it. Setting up docker-ce (5:20.10.1~3-0~ubuntu-focal) buster-curl: Pulling from library/buildpack-deps, Digest: sha256:e1ed6c90e3e4f5906984e2903bfa6ce29f8c3daa2ba31426b4a00a0a777c2c2e, Status: Image is up to date for buildpack-deps:buster-curl, docker.io/library/buildpack-deps:buster-curl, docker run -it --rm --privileged -v /var/lib buildpack-deps:buster-curl, gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 9DC858229FC7DD38854AE2D88D81803C0EBFCD88, gpg: keybox '/root/.gnupg/pubring.kbx' created, gpg: /root/.gnupg/trustdb.gpg: trustdb created, gpg: key 8D81803C0EBFCD88: public key "Docker Release (CE deb)
Install Docker On Kali Linux 2022, Irish Terrier Rescue Wisconsin,
how to downgrade docker version ubuntu