2

I mistakenly tried to sudo apt remove python3 (I was trying to install multiple versions of Python), but stopped it using Ctrl+C immediately. Looks like I damaged the package and I was unable to open a terminal or anything. After struggling for hours now I can open terminal and apps like Google Chrome and Telegram, but can't open VS Code.

When I try to sudo apt install python3, after lots of failed dpkg queries, it says:

Processing was halted because there were too many errors.
libdvd-pkg: Checking orig.tar integrity...
/usr/src/libdvd-pkg/libdvdcss_1.4.2.orig.tar.bz2: OK
libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting...
E: Sub-process /usr/bin/dpkg returned an error code (1)

I looked it up and on “sub process usr bin dpkg returned an error code 1″ Error in Ubuntu it was suggested to try these commands:

sudo dpkg --configure -a

It fails and after failed dpkg queries, returns:

Processing was halted because there were too many errors.

sudo apt-get install -f also failed with the following error message:

Processing was halted because there were too many errors.
libdvd-pkg: Checking orig.tar integrity...
/usr/src/libdvd-pkg/libdvdcss_1.4.2.orig.tar.bz2: OK
libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting...
E: Sub-process /usr/bin/dpkg returned an error code (1)

I checked and it seems I can manually install each dpkg query by downloading the source file and compiling it, but it wouldn't be sane to do such thing. There are a lot of damaged packages it seems.

Alireza
  • 161

0 Answers0