Ubuntu 18.04下出现The following packages have unmet dependencies:错误的解决办法

在尝试安装tweak时遇到未满足的依赖问题,通过修改Ubuntu 18.04的默认源列表可以解决此问题。步骤包括使用sudo gedit编辑/etc/apt/source.list文件,替换为官方默认源。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在安装tweak时候出现如下问题 


可能的一种原因是某些源有问题 ,所以把apt安装源改回ubuntu默认源即可解决
方法:
1.
sudo gedit /etc/apt/source.list 打开存放源列表的文件
2.
粘贴默认ubuntu源列表
 

# deb cdrom:[Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/ bionic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://cn.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORT
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值