徐州建站平台,如何做企业招聘网站,河间网站建设价格,小城建设的网站文章目录 #x1f315;问题#x1f315;查看系统版本#x1f315;为什么更新更成了atzlinux#x1f315;通过修复依赖关系尝试解决右上角红色错误符号#x1f315;把源换成ubuntu的源#x1f315;删除atzlinux源和自定义的第三方源#x1f315;重新创建/etc/os-release文… 文章目录 问题查看系统版本为什么更新更成了atzlinux通过修复依赖关系尝试解决右上角红色错误符号把源换成ubuntu的源删除atzlinux源和自定义的第三方源重新创建/etc/os-release文件成功解决tmd再也不乱更新了 2024.10.20 以下博客需要科学上网。
问题
系统弹出更新我就点了结果系统变成了atzlinux。右上角同时出现红色横杠符号显示错误a problem has occurred when check for update.
查看系统版本
lsb_release -a结果我的ubuntu22.04LTS变成了atzlinux12.7.0连开机选择系统的界面我的系统都变成了atzlinux。
为什么更新更成了atzlinux
应该是因为之前系统换了阿里源的问题。
通过修复依赖关系尝试解决右上角红色错误符号
ubuntu右上角总是显示一个红色的警告icon
如果在更新过程中遇到依赖关系问题可以尝试运行sudo apt install -f命令来自动修复依赖关系。
sudo apt install -f通过如下命令查看是不是只要删除atzlinux相关的东西如果是点击y。
sudo apt-get -f autoremove如果有其它不需要删除的东西点击n。然后单独删除
比如微信导致右上角红色符合就删除微信
sudo apt-get remove deepin.com.wechat:i386sudo apt-get update再次查看 lsb_release -a 系统并没有恢复成ubuntu22.04LTS由atzlinux变成了Debian testing/unstable版
同时右上角的红色报错符号还在。
失败。
把源换成ubuntu的源
备份原镜像源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup把内容换成ubuntu官方源
sudo vim /etc/apt/sources.list# Main repository
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse# Updates repository
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse# Security updates
deb http://security.ubuntu.com/ubuntu jammy-security main restricted universe multiverse# Backports repository
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse# Main repository (source)
deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse# Updates repository (source)
deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse# Security updates (source)
deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted universe multiverse# Backports repository (source)
deb-src http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
:wq 保存退出
开启科学上网然后命令行输入
sudo apt updatesudo apt upgrade删除atzlinux源和自定义的第三方源
ls /etc/apt/sources.list.d/出现atzlinux的文件直接rm掉
sudo rm /etc/apt/sources.list.d/atzlinux-v12.list ls /etc/apt/sources.list.d/出现如下内容
cappelikan-ubuntu-ppa-focal.list
cappelikan-ubuntu-ppa-focal.list.distUpgrade
cudnn-local-ubuntu2204-8.6.0.163.list
vscode.list我把这两个cappeliken移动到/opt里。
更新系统的源
sudo apt update如图出现报错
** (appstreamcli:167275): WARNING **: 10:00:53.653: Unable to read /etc/os-release file.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.说明找不到/etc/os-release了。
查看一下
cat /etc/os-release输出
cat: /etc/os-release: No such file or directory这个文件确实没了。
重新创建/etc/os-release文件
sudo nano /etc/os-release写入
NAMEUbuntu
VERSION22.04 LTS (Jammy Jellyfish)
IDubuntu
ID_LIKEdebian
PRETTY_NAMEUbuntu 22.04 LTS
VERSION_ID22.04
HOME_URLhttps://www.ubuntu.com/
SUPPORT_URLhttps://help.ubuntu.com/
BUG_REPORT_URLhttps://bugs.launchpad.net/ubuntu/
PRIVACY_POLICY_URLhttps://www.ubuntu.com/legal/terms-and-policies/privacy-policy
VERSION_CODENAMEjammy
UBUNTU_CODENAMEjammysudo apt updatelsb_release -a回来了都回来了。
sudo apt full-upgrade几分钟之后右上角的红色错误符号消失了。
成功解决tmd再也不乱更新了