Problems and solutions for installing Docker on Alibaba Cloud

Problems and solutions for installing Docker on Alibaba Cloud

question

When installing Docker using Alibaba Cloud image, the following error occurs, as shown in the following figure:

Malformed entry 60 in list file /etc/apt/sources.list (Component)

Install Docker error

Solution

Note that the error message says that the format of line 60 of the /etc/apt/sources.list file is incorrect, so try commenting out this line . First open this file:

$ sudoedit /etc/apt/sources.list

Then use vim's syntax to enter the editing mode and find line 60.

deb [arch=amd64] https://download.docker.com/linux/ubuntu stable

Use # to comment out. Save and exit.
Update it again:

$ sudo apt-get update

You can see:

insert image description here

The modification is finished here.
Try the installation again:

$ sudo apt-get install docker-ce

It succeeded.

This is the end of this article about the error problems and solutions of installing docker on Alibaba Cloud images. For more information about installing docker on Alibaba Cloud images, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to install WSL2 Ubuntu20.04 on Windows 10 and set up the docker environment
  • Tutorial on installing Docker in Windows 10 subsystem Ubuntu (WSL) (with pictures and text)
  • Solve the problem of running hello-world after docker installation
  • Solution to the error when installing Docker on CentOS version
  • Solutions to Docker installation and error reporting issues under Windows 7
  • Ubuntu vps installs docker and reports an error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Problem solved
  • Installing Docker Desktop reports an error message: WSL 2 installation is incomplete (Solve the error message)

<<:  js realizes the dynamic loading of data by waterfall flow bottoming out

>>:  Native JS to implement hover drop-down menu

Recommend

How to create a swap partition file in Linux

Introduction to Swap Swap (i.e. swap partition) i...

Analysis of MySQL duplicate index and redundant index examples

This article uses examples to describe MySQL dupl...

Three common uses of openlayers6 map overlay (popup window marker text)

Table of contents 1. Write in front 2. Overlay to...

Introduction to using Unicode characters in web pages (&#,\u, etc.)

The earliest computers could only use ASCII chara...

JavaScript realizes the generation and verification of random codes

The generation and verification of random codes i...

JavaScript canvas realizes colorful sun halo effect

This article example shares the specific code of ...

Implementation of scheduled backup in Mysql5.7

1. Find mysqldump.exe in the MySQL installation p...

Difference and implementation of JavaScript anti-shake and throttling

Table of contents 1. Anti-shake 2. Throttling 3. ...

Detailed analysis of several situations in which MySQL indexes fail

1. Leading fuzzy query cannot use index (like ...

Detailed explanation of vite2.0 configuration learning (typescript version)

introduce You Yuxi’s original words. vite is simi...

SQL merge operation of query results of tables with different columns

To query two different tables, you need to merge ...

Detailed explanation of how to use CMD command to operate MySql database

First: Start and stop the mysql service net stop ...