Система пакетов не работает в Ubuntu 21.04

Я не могу обновить Ubuntu, потому что система пакетов не работает.

ниже показано изображение ошибки:

the system package is brken

после обновления ubuntu у меня возникла эта проблема.

Обновление 1:

Я пробовал следующее: sudo apt-get clean :

вывод:

(base) ☁  ~  sudo apt-get clean  
(base) ☁  ~  

, sudo apt-get install -f :

вывод:

(base) ☁  ~  sudo apt-get install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  geoip-database libgeoip1 libnginx-mod-http-auth-pam libnginx-mod-http-cache-purge libnginx-mod-http-dav-ext
  libnginx-mod-http-fancyindex libnginx-mod-http-geoip libnginx-mod-http-headers-more-filter
  libnginx-mod-http-image-filter libnginx-mod-http-perl libnginx-mod-http-subs-filter
  libnginx-mod-http-uploadprogress libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter
  libnginx-mod-mail libnginx-mod-nchan libnginx-mod-stream libnginx-mod-stream-geoip libnginx-mod-stream-geoip2
  libpcre2-posix3
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libpcre2-posix2
The following NEW packages will be installed:
  libpcre2-posix2
0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.
1 not fully installed or removed.
Need to get 8,300 B of archives.
After this operation, 33.8 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get: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]
Fetched 8,300 B in 10s (812 B/s)           
(Reading database ... 320322 files and directories currently installed.)
Preparing to unpack .../libpcre2-posix2_10.39-2+ubuntu21.10.1+deb.sury.org+1_amd64.deb ...
Unpacking libpcre2-posix2:amd64 (10.39-2+ubuntu21.10.1+deb.sury.org+1) ...
dpkg: error processing archive /var/cache/apt/archives/libpcre2-posix2_10.39-2+ubuntu21.10.1+deb.sury.org+1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libpcre2-posix.so.3', which is also in package libpcre2-posix3:amd64 10.37-0ubuntu2
Errors were encountered while processing:
 /var/cache/apt/archives/libpcre2-posix2_10.39-2+ubuntu21.10.1+deb.sury.org+1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo apt --fix-broken install:

output:

(base) ☁  ~  sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  geoip-database libgeoip1 libnginx-mod-http-auth-pam libnginx-mod-http-cache-purge libnginx-mod-http-dav-ext
  libnginx-mod-http-fancyindex libnginx-mod-http-geoip libnginx-mod-http-headers-more-filter
  libnginx-mod-http-image-filter libnginx-mod-http-perl libnginx-mod-http-subs-filter
  libnginx-mod-http-uploadprogress libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter
  libnginx-mod-mail libnginx-mod-nchan libnginx-mod-stream libnginx-mod-stream-geoip libnginx-mod-stream-geoip2
  libpcre2-posix3
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libpcre2-posix2
The following NEW packages will be installed:
  libpcre2-posix2
0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.
1 not fully installed or removed.
Need to get 0 B/8,300 B of archives.
After this operation, 33.8 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 320322 files and directories currently installed.)
Preparing to unpack .../libpcre2-posix2_10.39-2+ubuntu21.10.1+deb.sury.org+1_amd64.deb ...
Unpacking libpcre2-posix2:amd64 (10.39-2+ubuntu21.10.1+deb.sury.org+1) ...
dpkg: error processing archive /var/cache/apt/archives/libpcre2-posix2_10.39-2+ubuntu21.10.1+deb.sury.org+1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libpcre2-posix.so.3', which is also in package libpcre2-posix3:amd64 10.37-0ubuntu2
Errors were encountered while processing:
 /var/cache/apt/archives/libpcre2-posix2_10.39-2+ubuntu21.10.1+deb.sury.org+1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

и некоторые другие решения, но они не работали.

Обновление 2:

Всплывающее окно программы обновления системного программного обеспечения с запросом на обновление. Я обновился, и после этого обновления у меня возникла эта проблема

Обновление 3:

Я не знал, какое стороннее приложение удалить, поэтому я не удалял никаких сторонних приложений.

обновление 4:

sudo apt update

(base) ☁  ~  sudo apt update
Hit:1 http://ppa.launchpad.net/ondrej/php/ubuntu impish InRelease
Hit:2 http://ppa.launchpad.net/papirus/papirus/ubuntu impish InRelease       
Hit:3 http://security.ubuntu.com/ubuntu impish-security InRelease                                                
Ign:4 http://nginx.org/packages/debian impish InRelease                     
Err:5 http://nginx.org/packages/debian impish Release                                                        
  404  Not Found [IP: 3.125.197.172 80]
Hit:6 http://af.archive.ubuntu.com/ubuntu impish InRelease                                                  
Hit:7 http://af.archive.ubuntu.com/ubuntu impish-updates InRelease                                    
Hit:8 http://af.archive.ubuntu.com/ubuntu impish-backports InRelease   
Hit:9 https://dl.google.com/linux/chrome/deb stable InRelease          
Reading package lists... Done
E: The repository 'http://nginx.org/packages/debian impish Release' does not have a Release file.
N: Updating from such a repository can't be done securely and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

sudo apt autoremove

(base) ☁  ~  sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  geoip-database libgeoip1 libnginx-mod-http-auth-pam libnginx-mod-http-cache-purge libnginx-mod-http-dav-ext
  libnginx-mod-http-fancyindex libnginx-mod-http-geoip libnginx-mod-http-headers-more-filter
  libnginx-mod-http-image-filter libnginx-mod-http-perl libnginx-mod-http-subs-filter
  libnginx-mod-http-uploadprogress libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter
  libnginx-mod-mail libnginx-mod-nchan libnginx-mod-stream libnginx-mod-stream-geoip libnginx-mod-stream-geoip2
  libpcre2-posix3
0 upgraded, 0 newly installed, 20 to remove and 0 not upgraded.
After this operation, 12.9 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 320326 files and directories currently installed.)
Removing geoip-database (20191224-3) ...
Removing libnginx-mod-stream-geoip (1.18.0-6ubuntu11) ...
Removing libnginx-mod-http-geoip (1.18.0-6ubuntu11) ...
Removing libgeoip1:amd64 (1.6.12-7) ...
Removing libnginx-mod-http-auth-pam (1.18.0-6ubuntu11) ...
Removing libnginx-mod-http-cache-purge (1.18.0-6ubuntu11) ...
Removing libnginx-mod-http-dav-ext (1.18.0-6ubuntu11) ...
Removing libnginx-mod-http-fancyindex (1.18.0-6ubuntu11) ...
Removing libnginx-mod-http-headers-more-filter (1.18.0-6ubuntu11) ...
Removing libnginx-mod-http-image-filter (1.18.0-6ubuntu11) ...
Removing libnginx-mod-http-perl (1.18.0-6ubuntu11) ...
Removing libnginx-mod-http-subs-filter (1.18.0-6ubuntu11) ...
Removing libnginx-mod-http-uploadprogress (1.18.0-6ubuntu11) ...
Removing libnginx-mod-http-upstream-fair (1.18.0-6ubuntu11) ...
Removing libnginx-mod-http-xslt-filter (1.18.0-6ubuntu11) ...
Removing libnginx-mod-mail (1.18.0-6ubuntu11) ...
Removing libnginx-mod-nchan (1.18.0-6ubuntu11) ...
Removing libnginx-mod-stream-geoip2 (1.18.0-6ubuntu11) ...
Removing libnginx-mod-stream (1.18.0-6ubuntu11) ...
Removing libpcre2-posix3:amd64 (10.37-0ubuntu2) ...
Processing triggers for nginx-light (1.18.0-6ubuntu11) ...
Triggering nginx reload ...
Processing triggers for libc-bin (2.34-0ubuntu3) ...
0
задан 28 November 2021 в 04:15

0 ответов

Другие вопросы по тегам:

Похожие вопросы: