错误消息 E:与源相关的选项 Signed-By 的值设置有冲突

错误消息 E:与源相关的选项 Signed-By 的值设置有冲突

根据收集到的更好的信息修改问题:在我的 Ubuntu 22.04 系统上

  1. 当我执行命令时:

    ls /etc/apt/sources.list.d 
    

    我得到输出:

    unit193-ubuntu-encryption-jammy.list    winehq-jammy.sources  winehq.list.save
    unit193-ubuntu-encryption-jammy.list.save  winehq.list
    
  2. 命令:

    sudo rm -r /var/lib/apt/lists/*
    

    输出:

    rm: cannot remove '/var/lib/apt/lists/*': No such file or directory
    
  3. 命令:

    sudo apt-get update
    

    输出:

    E: Conflicting values set for option Signed-By regarding source https://dl.winehq.org/wine-builds/ubuntu/ jammy: /usr/share/keyrings/winehq-archive.key != /usr/share/keyrings/winehq.gpg
    E: The list of sources could not be read.
    
  4. 单击“软件和更新”时,没有任何内容打开。请帮忙。


你好,Romulo de Oliveira 和 Artur Meinild。这是您建议的命令的输出。


  1. parag2tbubuntu@parag2TBubuntu-PC:~$ sudo rm /usr/share/keyrings/winehq.gpg

[sudo] parag2tbubuntu 的密码:

rm:无法删除“/usr/share/keyrings/winehq.gpg”:没有此文件或目录

  1. parag2tbubuntu@parag2TBubuntu-PC:~$ sudo rm /usr/share/keyrings/winehq-archive.key

rm:无法删除“/usr/share/keyrings/winehq-archive.key”:没有此文件或目录

  1. parag2tbubuntu@parag2TBubuntu-PC:~$ sudo rm /etc/apt/sources.list.d/winehq-jammy.sources

parag2tbubuntu@parag2TBubuntu-PC:~$


请解释并指导我。

答案1

sudo rm /usr/share/keyrings/winehq.gpg


sudo rm /usr/share/keyrings/winehq-archive.key


sudo rm /etc/apt/sources.list.d/winehq-jammy.sources

答案2

sudo apt 策略 | grep winehq

ls /usr/share/keyrings | grep winehq

sudo rm /usr/share/keyrings/winehq-archive-keyring.gpg

ls /etc/apt/sources.list.d | grep winehq

sudo rm /etc/apt/sources.list.d/winehq.list

sudo apt 更新

相关内容