由于 curl 冲突,无法更新或安装*任何内容*

由于 curl 冲突,无法更新或安装*任何内容*
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-60-generic (64-bit)

我无法从 Discover 或终端升级。我收到以下错误:

 libcurl4-openssl-dev : Depends: libcurl4 (= 7.81.0-1ubuntu1.7) but 7.81.0-1ubuntu1.8 is to be installed
                        Breaks: libcurl4-openssl-dev:i386 (!= 7.81.0-1ubuntu1.7) but 7.81.0-1ubuntu1.8 is to be installed
 libcurl4-openssl-dev:i386 : Breaks: libcurl4-openssl-dev (!= 7.81.0-1ubuntu1.8) but 7.81.0-1ubuntu1.7 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

到目前为止,我已经在 Google 上搜索了一个小时,但还没有找到任何可以解决这个问题的方法。我该如何修复这个问题,以便更新我的电脑?

编辑:apt policy libcurl4 libcurl4-openssl-dev libcurl4-openssl-dev:i386 输出

  Installed: 7.81.0-1ubuntu1.8
  Candidate: 7.81.0-1ubuntu1.8
  Version table:
 *** 7.81.0-1ubuntu1.8 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        100 /var/lib/dpkg/status
     7.81.0-1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
libcurl4-openssl-dev:
  Installed: 7.81.0-1ubuntu1.7
  Candidate: 7.81.0-1ubuntu1.8
  Version table:
     7.81.0-1ubuntu1.8 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
 *** 7.81.0-1ubuntu1.7 100
        100 /var/lib/dpkg/status
     7.81.0-1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
libcurl4-openssl-dev:i386:
  Installed: 7.81.0-1ubuntu1.8
  Candidate: 7.81.0-1ubuntu1.8
  Version table:
 *** 7.81.0-1ubuntu1.8 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
        100 /var/lib/dpkg/status
     7.81.0-1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main i386 Packages

sudo apt --fix-broken install刚刚返回

dpkg: error processing archive /var/cache/apt/archives/libcurl4-openssl-dev_7.81.0-1ubuntu1.8_amd64.deb (--unpack):
 trying to overwrite shared '/usr/bin/curl-config', which is different from other instances of package libcurl4-openssl-dev:amd64
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libcurl4-openssl-dev_7.81.0-1ubuntu1.8_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

它看起来像一个冲突,执行以下操作,打开一个终端然后执行sudo apt --fix-broken install,如果这不能解决,请尝试然后sudo apt-get install libcurl4=7.81.0-1ubuntu1.7 libcurl4-openssl-dev=7.81.0-1ubuntu1.7 libcurl4-openssl-dev:i386=7.81.0-1ubuntu1.7执行经典操作sudo apt updatesudo apt upgrade

相关内容