$ sudo apt-get install -f
[sudo] password for ajay:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libx264-123
The following NEW packages will be installed:
libx264-123
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/345 kB of archives.
After this operation, 1,005 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 166965 files and directories currently installed.)
Preparing to unpack .../libx264-123_0.123.2189+git35cf912-1ubuntu4_amd64.deb ...
Unpacking libx264-123:amd64 (2:0.123.2189+git35cf912-1ubuntu4) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/libx264-123_0.123.2189+git35cf912-1ubuntu4_amd64.deb (--unpack):
cannot copy extracted data for './usr/lib/x86_64-linux-gnu/libx264.so.123' to '/usr/lib/x86_64-linux-gnu/libx264.so.123.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
/var/cache/apt/archives/libx264-123_0.123.2189+git35cf912-1ubuntu4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Попробуйте ниже команд на терминале,
sudo apt-get clean
sudo apt-get install -f
, Как я знаю?
Ваше сообщение об ошибке ясно указывает, что, стоит перед ошибкой при распаковке загруженных архивов. Это главным образом из-за неполной загрузки архивов.
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
Настолько удаляющий все архивы в /var/cache/apt/archives
каталог (sudo apt-get clean
) и фиксация поврежденных пакетов (sudo apt-get install -f
) будут решать Вашу проблему.
Попытка: sudo apt-get clean && sudo apt-get install -f