Mah*_*ari 10 updates update-manager package-management ppa
我无法更新 ubuntu,因为软件包系统已损坏。
\n下面是错误图片:
\n
更新ubuntu后我遇到了这个问题。
\n更新1:
\n我已经尝试过这些:\n sudo apt-get clean:
输出:
\n(base) \xe2\x98\x81 ~ sudo apt-get clean \n(base) \xe2\x98\x81 ~ \nRun Code Online (Sandbox Code Playgroud)\n, sudo apt-get install -f:
输出:
\n(base) \xe2\x98\x81 ~ sudo apt-get install -f\nReading package lists... Done\nBuilding dependency tree... Done\nReading state information... Done\nCorrecting dependencies... Done\nThe following packages were automatically installed and are no longer required:\n geoip-database libgeoip1 libnginx-mod-http-auth-pam libnginx-mod-http-cache-purge libnginx-mod-http-dav-ext\n libnginx-mod-http-fancyindex libnginx-mod-http-geoip libnginx-mod-http-headers-more-filter\n libnginx-mod-http-image-filter libnginx-mod-http-perl libnginx-mod-http-subs-filter\n libnginx-mod-http-uploadprogress libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter\n libnginx-mod-mail libnginx-mod-nchan libnginx-mod-stream libnginx-mod-stream-geoip libnginx-mod-stream-geoip2\n libpcre2-posix3\nUse \'sudo apt autoremove\' to remove them.\nThe following additional packages will be installed:\n libpcre2-posix2\nThe following NEW packages will be installed:\n libpcre2-posix2\n0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.\n1 not fully installed or removed.\nNeed to get 8,300 B of archives.\nAfter this operation, 33.8 kB of additional disk space will be used.\nDo you want to continue? [Y/n] y\nGet:1 http://ppa.launchpad.net/ondrej/php/ubuntu impish/main amd64 libpcre2-posix2 amd64 10.39-2+ubuntu21.10.1+deb.sury.org+1 [8,300 B]\nFetched 8,300 B in 10s (812 B/s) \n(Reading database ... 320322 files and directories currently installed.)\nPreparing to unpack .../libpcre2-posix2_10.39-2+ubuntu21.10.1+deb.sury.org+1_amd64.deb ...\nUnpacking libpcre2-posix2:amd64 (10.39-2+ubuntu21.10.1+deb.sury.org+1) ...\ndpkg: error processing archive /var/cache/apt/archives/libpcre2-posix2_10.39-2+ubuntu21.10.1+deb.sury.org+1_amd64.deb (--unpack):\n trying to overwrite \'/usr/lib/x86_64-linux-gnu/libpcre2-posix.so.3\', which is also in package libpcre2-posix3:amd64 10.37-0ubuntu2\nErrors were encountered while processing:\n /var/cache/apt/archives/libpcre2-posix2_10.39-2+ubuntu21.10.1+deb.sury.org+1_amd64.deb\nE: Sub-process /usr/bin/dpkg returned an error code (1)\nRun Code Online (Sandbox Code Playgroud)\nsudo apt --fix-broken install:
输出:
\n(base) \xe2\x98\x81 ~ sudo apt --fix-broken install\nReading package lists... Done\nBuilding dependency tree... Done\nReading state information... Done\nCorrecting dependencies... Done\nThe following packages were automatically installed and are no longer required:\n geoip-database libgeoip1 libnginx-mod-http-auth-pam libnginx-mod-http-cache-purge libnginx-mod-http-dav-ext\n libnginx-mod-http-fancyindex libnginx-mod-http-geoip libnginx-mod-http-headers-more-filter\n libnginx-mod-http-image-filter libnginx-mod-http-perl libnginx-mod-http-subs-filter\n libnginx-mod-http-uploadprogress libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter\n libnginx-mod-mail libnginx-mod-nchan libnginx-mod-stream libnginx-mod-stream-geoip libnginx-mod-stream-geoip2\n libpcre2-posix3\nUse \'sudo apt autoremove\' to remove them.\nThe following additional packages will be installed:\n libpcre2-posix2\nThe following NEW packages will be installed:\n libpcre2-posix2\n0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.\n1 not fully installed or removed.\nNeed to get 0 B/8,300 B of archives.\nAfter this operation, 33.8 kB of additional disk space will be used.\nDo you want to continue? [Y/n] y\n(Reading database ... 320322 files and directories currently installed.)\nPreparing to unpack .../libpcre2-posix2_10.39-2+ubuntu21.10.1+deb.sury.org+1_amd64.deb ...\nUnpacking libpcre2-posix2:amd64 (10.39-2+ubuntu21.10.1+deb.sury.org+1) ...\ndpkg: error processing archive /var/cache/apt/archives/libpcre2-posix2_10.39-2+ubuntu21.10.1+deb.sury.org+1_amd64.deb (--unpack):\n trying to overwrite \'/usr/lib/x86_64-linux-gnu/libpcre2-posix.so.3\', which is also in package libpcre2-posix3:amd64 10.37-0ubuntu2\nErrors were encountered while processing:\n /var/cache/apt/archives/libpcre2-posix2_10.39-2+ubuntu21.10.1+deb.sury.org+1_amd64.deb\nE: Sub-process /usr/bin/dpkg returned an error code (1)\nRun Code Online (Sandbox Code Playgroud)\n和其他一些解决方案,但没有奏效。
\n更新2:
\n系统软件更新程序弹出一个窗口,想要更新。\n我更新了,更新后,我遇到了这个问题
\n更新3:
\n我不知道要删除哪个第三方应用程序,所以我没有删除任何第三方应用程序。
\n更新4:
\nsudo apt update
(base) \xe2\x98\x81 ~ sudo apt update\nHit:1 http://ppa.launchpad.net/ondrej/php/ubuntu impish InRelease\nHit:2 http://ppa.launchpad.net/papirus/papirus/ubuntu impish InRelease \nHit:3 http://security.ubuntu.com/ubuntu impish-security InRelease \nIgn:4 http://nginx.org/packages/debian impish InRelease \nErr:5 http://nginx.org/packages/debian impish Release \n 404 Not Found [IP: 3.125.197.172 80]\nHit:6 http://af.archive.ubuntu.com/ubuntu impish InRelease \nHit:7 http://af.archive.ubuntu.com/ubuntu impish-updates InRelease \nHit:8 http://af.archive.ubuntu.com/ubuntu impish-backports InRelease \nHit:9 https://dl.google.com/linux/chrome/deb stable InRelease \nReading package lists... Done\nE: The repository \'http://nginx.org/packages/debian impish Release\' does not have a Release file.\nN: Updating from such a repository can\'t be done securely and is therefore disabled by default.\nN: See apt-secure(8) manpage for repository creation and user configuration details.\nRun Code Online (Sandbox Code Playgroud)\nsudo apt autoremove
(base) \xe2\x98\x81 ~ sudo apt autoremove\nReading package lists... Done\nBuilding dependency tree... Done\nReading state information... Done\nThe following packages will be REMOVED:\n geoip-database libgeoip1 libnginx-mod-http-auth-pam libnginx-mod-http-cache-purge libnginx-mod-http-dav-ext\n libnginx-mod-http-fancyindex libnginx-mod-http-geoip libnginx-mod-http-headers-more-filter\n libnginx-mod-http-image-filter libnginx-mod-http-perl libnginx-mod-http-subs-filter\n libnginx-mod-http-uploadprogress libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter\n libnginx-mod-mail libnginx-mod-nchan libnginx-mod-stream libnginx-mod-stream-geoip libnginx-mod-stream-geoip2\n libpcre2-posix3\n0 upgraded, 0 newly installed, 20 to remove and 0 not upgraded.\nAfter this operation, 12.9 MB disk space will be freed.\nDo you want to continue? [Y/n] y\n(Reading database ... 320326 files and directories currently installed.)\nRemoving geoip-database (20191224-3) ...\nRemoving libnginx-mod-stream-geoip (1.18.0-6ubuntu11) ...\nRemoving libnginx-mod-http-geoip (1.18.0-6ubuntu11) ...\nRemoving libgeoip1:amd64 (1.6.12-7) ...\nRemoving libnginx-mod-http-auth-pam (1.18.0-6ubuntu11) ...\nRemoving libnginx-mod-http-cache-purge (1.18.0-6ubuntu11) ...\nRemoving libnginx-mod-http-dav-ext (1.18.0-6ubuntu11) ...\nRemoving libnginx-mod-http-fancyindex (1.18.0-6ubuntu11) ...\nRemoving libnginx-mod-http-headers-more-filter (1.18.0-6ubuntu11) ...\nRemoving libnginx-mod-http-image-filter (1.18.0-6ubuntu11) ...\nRemoving libnginx-mod-http-perl (1.18.0-6ubuntu11) ...\nRemoving libnginx-mod-http-subs-filter (1.18.0-6ubuntu11) ...\nRemoving libnginx-mod-http-uploadprogress (1.18.0-6ubuntu11) ...\nRemoving libnginx-mod-http-upstream-fair (1.18.0-6ubuntu11) ...\nRemoving libnginx-mod-http-xslt-filter (1.18.0-6ubuntu11) ...\nRemoving libnginx-mod-mail (1.18.0-6ubuntu11) ...\nRemoving libnginx-mod-nchan (1.18.0-6ubuntu11) ...\nRemoving libnginx-mod-stream-geoip2 (1.18.0-6ubuntu11) ...\nRemoving libnginx-mod-stream (1.18.0-6ubuntu11) ...\nRemoving libpcre2-posix3:amd64 (10.37-0ubuntu2) ...\nProcessing triggers for nginx-light (1.18.0-6ubuntu11) ...\nTriggering nginx reload ...\nProcessing triggers for libc-bin (2.34-0ubuntu3) ...\nRun Code Online (Sandbox Code Playgroud)\n
Arc*_*ahi 26
该包似乎libpcre2-posix2试图覆盖libpcre2-posix3.
授予apt覆盖文件的权限。
sudo apt-get -o Dpkg::Options::="--force-overwrite" install libpcre2-posix2
Run Code Online (Sandbox Code Playgroud)
然后,运行sudo apt update、sudo apt install -f和sudo apt upgrade。
以下命令应删除 PPA 和冲突的软件包。
sudo apt install ppa-purge
sudo ppa-purge ppa:ondrej/php
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5952 次 |
| 最近记录: |