Почему Ubuntu не устанавливает пакеты?

Привет всем, пытался установить php, но выдалo такую ошибку:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libapache2-mod-php8.1 php-common php8.1 php8.1-cli php8.1-common
  php8.1-opcache php8.1-readline
Suggested packages:
  php-pear
The following NEW packages will be installed:
  libapache2-mod-php8.1 php php-common php8.1 php8.1-cli php8.1-common
  php8.1-opcache php8.1-readline
0 upgraded, 8 newly installed, 0 to remove and 18 not upgraded.
Need to get 0 B/5 127 kB of archives.
After this operation, 21,3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package php-common.
dpkg: warning: files list file for package 'x11-common' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'linux-headers-5.19.0-32-generic' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'linux-hwe-5.19-headers-5.19.0-32' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'linux-image-5.19.0-32-generic' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libx11-6:amd64' missing; assuming package has no files currently installed
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'linux-libc-dev:amd64' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)
chebak@chebak:~$ ^C
chebak@chebak:~$ sudo apt-get install php
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libapache2-mod-php8.1 php-common php8.1 php8.1-cli php8.1-common
  php8.1-opcache php8.1-readline
Suggested packages:
  php-pear
The following NEW packages will be installed:
  libapache2-mod-php8.1 php php-common php8.1 php8.1-cli php8.1-common
  php8.1-opcache php8.1-readline
0 upgraded, 8 newly installed, 0 to remove and 18 not upgraded.
Need to get 0 B/5 127 kB of archives.
After this operation, 21,3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package php-common.
dpkg: warning: files list file for package 'x11-common' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'linux-headers-5.19.0-32-generic' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'linux-hwe-5.19-headers-5.19.0-32' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'linux-image-5.19.0-32-generic' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libx11-6:amd64' missing; assuming package has no files currently installed
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'linux-libc-dev:amd64' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)


Потом выяснилось, что вообще никакие пакеты не устанавливаются.
  • Вопрос задан
  • 240 просмотров
Пригласить эксперта
Ответы на вопрос 1
mrusklon
@mrusklon
Не получается? Яростно гугли!
sudo apt-get update

sudo apt-get clean
sudo apt-get autoclean

sudo apt-get --purge remove linux-libc-dev:amd64
sudo apt-get install linux-libc-dev:amd64
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы