同学,你好!同学尝试换个镜像源来再安装mysql,更换镜像源步骤如下:
1、打开终端,备份源列文件:为了避免出现问题,建议在修改源之前备份一下 sources.list 文件。
sudo vi /etc/apt/sources.list
2、编辑 sources.list 文件:执行以下命令打开 sources.list 文件。
sudo vi /etc/apt/sources.list
3、更换源:将当前文件中的所有内容替换为如下源,并保存文件
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
4、更新软件包列表:执行以下命令以应用更新的软件包源
sudo apt-get update
更新完成后,终端将使用新的镜像源来获取软件包信息,同学再尝试继续安装 MySQL 看能否安装成功。
祝学习愉快~
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星