HeroM2 - HeroM2英雄连击引擎

查看: 738|回复: 0

ubuntu 安装报错 sudo apt install 解决方法

[复制链接]

208

主题

11

回帖

1139

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1139
发表于 2023-11-19 14:45:53 | 显示全部楼层 |阅读模式 IP:亚太地区
sudo apt install -y  安装报错
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
解决方法:
cd /var/lib/dpkg/updates
rm -r ./*







apt install net-tools



1. 先将原有官方sources.list文件进行备份

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2. 将原来的sources.list删除掉,然后再创建新的

sudo rm /etc/apt/sources.list
# 使用vi时会自动创建文件
sudo vi /etc/apt/sources.list


# 也可以先创建后编辑
sudo touch /etc/apt/sources.list

3. 将下列源填写到sources.list文件中(用一个国内源即可)


deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse




4. 最后update一下

sudo apt update




回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|HeroM2连击引擎

GMT+8, 2024-12-23 06:50 , Processed in 0.070096 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表