Привет всем, пытался установить 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)
Потом выяснилось, что вообще никакие пакеты не устанавливаются.