嘿,我是 ubntu 新手,我尝试安装 mysql,但没有安装成功,当我执行 sudo apt update 时却显示这个

嘿,我是 ubntu 新手,我尝试安装 mysql,但没有安装成功,当我执行 sudo apt update 时却显示这个
hacker@Windows:~$ sudo apt update
[sudo] password for hacker: 
Hit:1 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease             
Ign:5 http://repo.mysql.com/apt/ubuntu jammy InRelease
Err:6 http://repo.mysql.com/apt/ubuntu jammy Release
  404  Not Found [IP: 104.73.164.232 80]
Reading package lists... Done
E: The repository 'http://repo.mysql.com/apt/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
hacker@Windows:~$ 

答案1

这个错误是因为您添加的 repo 不存在。

解决这个问题最简单的方法是删除该存储库,sudo apt update然后通过常规存储库安装 mysql-serversudo apt install mysql-server

相关内容