首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误:无法检索禁止的http://repo.mysql.com/apt/debian/dists/buster/InRelease 403 [IP: 23.57.81.191 80]

错误:无法检索禁止的http://repo.mysql.com/apt/debian/dists/buster/InRelease 403 [IP: 23.57.81.191 80]
EN

Unix & Linux用户
提问于 2021-10-21 12:46:42
回答 1查看 544关注 0票数 0

我正在我的Debian 10上安装mysql-server

我在wget文件中使用了命令:/tmp,然后使用sudo dpkg命令返回以下响应:

代码语言:javascript
复制
 acelys @ uno-test-temp: / tmp $ sudo dpkg -i mysql-apt *
    (Reading database ... 46803 files and directories already installed.)
    Preparing to unpack mysql-apt-config_0.8.19-1_all.deb ...
    Unpacking mysql-apt-config (0.8.19-1) to (0.8.19-1) ...
    Setting up mysql-apt-config (0.8.19-1) ...
    Warning: apt-key should not be used in scripts (called from postinst maintainerscript of the package mysql-apt-config)
    OK

然后我输入命令:sudo apt update,下面是带有错误的响应:

代码语言:javascript
复制
acelys @ uno-test-temp: / tmp $ sudo apt update
    Err: 1 http://repo.mysql.com/apt/debian buster InRelease
      403 Forbidden [IP: 23.57.81.191 80]
    Reached: 2 http://deb.debian.org/debian buster InRelease
    Achieved: 3 http://security.debian.org/debian-security buster / updates InRelease
    Reached: 4 http://deb.debian.org/debian buster-updates InRelease
    Reached: 5 https://packages.sury.org/php buster InRelease
    Reading Package Lists ... Done
    E: Unable to retrieve http://repo.mysql.com/apt/debian/dists/buster/InRelease 403 Forbidden [IP: 23.57.81.191 80]
    E: The http://repo.mysql.com/apt/debian buster InRelease repository is unsigned.
    N: Updates from such a repository cannot be done securely, and are therefore disabled by default.
    N: See the apt-secure (8) man pages for repository creation and user configuration details.

我在互联网上搜索了很多文章,他们都说要在sources.list文件中做修改,但是他们不确定我应该做什么样的修改。

这是我的sources.list文件:

代码语言:javascript
复制
# deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190706-10:24]/ buster contrib main

#deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190706-10:24]/ buster contrib main

deb http://security.debian.org/debian-security buster/updates main contrib
deb-src http://security.debian.org/debian-security buster/updates main contrib

# buster
deb http://deb.debian.org/debian/ buster main
# deb-src http://deb.debian.org/debian/ buster main

# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ buster-updates main
#deb-src http://deb.debian.org/debian/ buster-updates main contrib non-free

这是我的mysql.list文件:

代码语言:javascript
复制
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out entries below, but any other modifications may be lost.
# Use command 'dpkg-reconfigure mysql-apt-config' as root for modifications.
deb http://repo.mysql.com/apt/debian/ buster mysql-apt-config
deb http://repo.mysql.com/apt/debian/ buster mysql-8.0
deb http://repo.mysql.com/apt/debian/ buster mysql-tools
#deb http://repo.mysql.com/apt/debian/ buster mysql-tools-preview
deb-src http://repo.mysql.com/apt/debian/ buster mysql-8.0 
EN

回答 1

Unix & Linux用户

发布于 2021-10-21 16:02:24

这看起来是存储库服务器上配置错误的典型情况。

代码语言:javascript
复制
$ nslookup repo.mysql.com
[...]

Non-authoritative answer:
repo.mysql.com  canonical name = repo.mysql.com.edgekey.net.
repo.mysql.com.edgekey.net      canonical name = e7528.d.akamaiedge.net.
Name:   e7528.d.akamaiedge.net
Address: 23.43.108.232

$ nslookup 23.57.81.191
191.81.57.23.in-addr.arpa       name = a23-57-81-191.deploy.static.akamaitechnologies.com.

看起来repo.mysql.com是由Akamai的内容交付网络提供的,因此在不同的位置和不同的时间对它的DNS查询将接收不同的IP地址作为响应,因为Akamai试图从他们最近的可提供的服务器上提供内容。

但是,在您的情况下,服务器Akamai似乎指示您的请求是错误的。也许,当它还没有完全完成对内容的镜像时,它就被允许响应客户端请求,或者其他事情出错了。

您可能想要检查Akamai服务状态页面,如果在那里似乎不知道问题,请考虑联系Akamai技术支持来报告问题。

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/674219

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档