sudo apt-get update‘跳过 confg 文件的 acuire’不支持架构‘1386’

sudo apt-get update‘跳过 confg 文件的 acuire’不支持架构‘1386’
[sudo] password for *****: 
>
N: Skipping acquire of configured file 'universe/binary-1386/Packages' as repository 'http://us.archive.ubuntu.com/ubuntu cosmic-backports InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'multiverse/binary-1386/Packages' as repository 'http://us.archive.ubuntu.com/ubuntu cosmic-backports InRelease' doesn't support architecture '1386'
N: Skipping acquire of configured file 'main/binary-1386/Packages' as repository 'http://ppa.launchpad.net/system76/pop/ubuntu cosmic InRelease' doesn't support architecture '1386'

我有一个无法识别的架构,它与 i386 一起,1386 是打字错误,但只有目录中的特权用户或超级用户才能访问。

帮助获取目录访问权限会很棒。尝试过 rm,但无法访问 var/lib/dpkg/ 目录中的那些文件,并且没有超级用户权限也无法编辑那里的文件。


编辑:

我设法 rm arch 但想保留它并调整内容以确保 i386 架构具有所有相关依赖关系。

编辑2:

Package files:
 100 /var/lib/dpkg/status
     release a=now
1001 http://ppa.launchpad.net/system76/pop/ubuntu cosmic/main amd64 Packages
     release v=18.10,o=LP-PPA-system76-pop,a=cosmic,n=cosmic,l=Pop!_OS PPA,c=main,b=amd64
     origin ppa.launchpad.net
 500 http://download.opensuse.org/repositories/home:/strycore/xUbuntu_18.04 ./ Packages
     release o=obs://build.opensuse.org/home:strycore/xUbuntu_18.04,n=xUbuntu_18.04,l=home:strycore,c=
     origin download.opensuse.org
 500 http://ppa.launchpad.net/lutris-team/lutris/ubuntu cosmic/main amd64 Packages
     release v=18.10,o=LP-PPA-lutris-team-lutris,a=cosmic,n=cosmic,l=lutris,c=main,b=amd64
     origin ppa.launchpad.net
 500 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu cosmic/main amd64 Packages
     release v=18.10,o=LP-PPA-graphics-drivers,a=cosmic,n=cosmic,l=Proprietary GPU Drivers,c=main,b=amd64
     origin ppa.launchpad.net
 500 https://dl.winehq.org/wine-builds/ubuntu xenial/main amd64 Packages
     release o=dl.winehq.org,a=xenial,n=xenial,l=winehq,c=main,b=amd64
     origin dl.winehq.org
 500 https://dl.winehq.org/wine-builds/ubuntu cosmic/main amd64 Packages
     release o=dl.winehq.org,a=cosmic,n=cosmic,l=winehq,c=main,b=amd64
     origin dl.winehq.org
 500 http://apt.pop-os.org/proprietary cosmic/main all Packages
     release v=18.04,o=system76,a=cosmic,n=cosmic,l=System76,c=main,b=all
     origin apt.pop-os.org
 500 http://apt.pop-os.org/proprietary cosmic/main amd64 Packages
     release v=18.04,o=system76,a=cosmic,n=cosmic,l=System76,c=main,b=amd64
     origin apt.pop-os.org
 100 http://us.archive.ubuntu.com/ubuntu cosmic-backports/universe amd64 Packages
     release v=18.10,o=Ubuntu,a=cosmic-backports,n=cosmic,l=Ubuntu,c=universe,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu cosmic-security/multiverse amd64 Packages
     release v=18.10,o=Ubuntu,a=cosmic-security,n=cosmic,l=Ubuntu,c=multiverse,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu cosmic-security/universe amd64 Packages
     release v=18.10,o=Ubuntu,a=cosmic-security,n=cosmic,l=Ubuntu,c=universe,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu cosmic-security/restricted amd64 Packages
     release v=18.10,o=Ubuntu,a=cosmic-security,n=cosmic,l=Ubuntu,c=restricted,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu cosmic-security/main amd64 Packages
     release v=18.10,o=Ubuntu,a=cosmic-security,n=cosmic,l=Ubuntu,c=main,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu cosmic-updates/multiverse amd64 Packages
     release v=18.10,o=Ubuntu,a=cosmic-updates,n=cosmic,l=Ubuntu,c=multiverse,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu cosmic-updates/universe amd64 Packages
     release v=18.10,o=Ubuntu,a=cosmic-updates,n=cosmic,l=Ubuntu,c=universe,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu cosmic-updates/restricted amd64 Packages
     release v=18.10,o=Ubuntu,a=cosmic-updates,n=cosmic,l=Ubuntu,c=restricted,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu cosmic-updates/main amd64 Packages
     release v=18.10,o=Ubuntu,a=cosmic-updates,n=cosmic,l=Ubuntu,c=main,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu cosmic/multiverse amd64 Packages
     release v=18.10,o=Ubuntu,a=cosmic,n=cosmic,l=Ubuntu,c=multiverse,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu cosmic/universe amd64 Packages
     release v=18.10,o=Ubuntu,a=cosmic,n=cosmic,l=Ubuntu,c=universe,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu cosmic/restricted amd64 Packages
     release v=18.10,o=Ubuntu,a=cosmic,n=cosmic,l=Ubuntu,c=restricted,b=amd64
     origin us.archive.ubuntu.com
 500 http://us.archive.ubuntu.com/ubuntu cosmic/main amd64 Packages
     release v=18.10,o=Ubuntu,a=cosmic,n=cosmic,l=Ubuntu,c=main,b=amd64
     origin us.archive.ubuntu.com
Pinned packages:

编辑3:

当我尝试 rmsoures.list

rm -rf /etc/apt/sources.list.d/ /etc/apt/sources.list
rm: cannot remove '/etc/apt/sources.list.d/lutris-team-ubuntu-lutris-cosmic.list.save': Permission denied
rm: cannot remove '/etc/apt/sources.list.d/lutris-team-ubuntu-lutris-cosmic.list': Permission denied
rm: cannot remove '/etc/apt/sources.list.d/lutris.list.save': Permission denied
rm: cannot remove '/etc/apt/sources.list.d/system76-ubuntu-pop-cosmic.list.save': Permission denied
rm: cannot remove '/etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-cosmic.list.save': Permission denied
rm: cannot remove '/etc/apt/sources.list.d/lutris.list': Permission denied
rm: cannot remove '/etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-cosmic.list': Permission denied
rm: cannot remove '/etc/apt/sources.list.d/system76-ubuntu-pop-cosmic.list': Permission denied
rm: cannot remove '/etc/apt/sources.list': Permission denied

答案1

清理 apt 存储库

从条目数量来看,apt-cache policy我建议先清理已注册的存储库,然后修复此问题。请尝试以下步骤

  1. 备份旧的 apt 存储库

    $ sudo cp -r /etc/apt/sources.list.d/ /etc/apt/sources.list.d_backup
    $ sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
    
  2. 删除旧的并sources.list使用默认存储库创建新的

    $ rm -rf /etc/apt/sources.list.d/ /etc/apt/sources.list
    $ for i in cosmic cosmic-updates cosmic-security cosmic-backports; do \
        echo "deb http://archive.ubuntu.com/ubuntu/ $i main restricted universe multiverse" | \
        sudo tee -a /etc/apt/sources.list; \
        done
    
  3. 清理存储库列表并再次运行更新

    $ sudo rm -rf /var/lib/apt/lists/*
    $ sudo apt update
    
  4. (可选)清洁包装

    看起来您有很多额外的外部存储库。尝试修复来自此存储库的任何问题。

    $ sudo apt-get install --fix-missing
    $ sudo apt-get upgrade
    

    如果这还不够,可以使用sudo dpkg -r <package name>

逐个添加缺失的 apt 存储库

sudo apt update没有sudo apt upgrade显示任何错误或操作时,您可以从备份文件启动自定义存储库。

# e.g. from your repo list
$ sudo add-apt-repository ppa:system76/pop
$ sudo apt-get update

相关内容