当前位置:首页 > 技术问答 > Debian apt-get update更新报错的解决方法

Debian apt-get update更新报错的解决方法

技术问答 / 星之宇 / 2022-3-1 20:40 / 浏览:46 / 评论:0

问题描述

一台很老的Debian使用apt-get update的时候,出现一下报错:

Get:1 http://mirrors.163.com/debian buster InRelease [122 kB]

Get:2 http://mirrors.163.com/debian buster-updates InRelease [56.6 kB]

Get:3 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]

Reading package lists... Done

N: Repository 'http://mirrors.163.com/debian buster InRelease' changed its 'Version' value from '10.7' to '10.13'

E: Repository 'http://mirrors.163.com/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'

N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

E: Repository 'http://mirrors.163.com/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'

N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'

N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

175-1.png


解决方法

1、使用一下命令:apt-get update --allow-releaseinfo-change (如果不是root账号请使用以下命令: sudo apt-get update --allow-releaseinfo-change,还有报错请重复执行直到没有报错)

175-2.png

175-3.png


2、再使用以下命令:apt-get upgrade (如果不是root账号请使用以下命令:sudo apt-get upgrade

175-4.png

目前有 0 条评论

    • QQ
    • 填好QQ,点击获取自动填写昵称和邮箱
    • 昵称
    • 邮箱
    • 网址