FYI: I am using Kubuntu 18.04
I keep getting the following error when I install apt-transport-https
Things I have already tired to fix this error are:
sudo apt-get autoremove libdvd-pkg
sudo apt-get install libdvd-pkg
sudo apt-get update
sudo apt-get install -f
sudo apt-get purge apt-transport-https && sudo apt-get install apt-transport-https
The error I continue to see is
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
apt-transport-https*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 152 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 246794 files and directories currently installed.)
Removing apt-transport-https (1.6.6) ...
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...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
apt-transport-https
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,692 B of archives.
After this operation, 152 kB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 apt-transport-https all 1.6.6 [1,692 B]
Fetched 1,692 B in 0s (6,872 B/s)
Selecting previously unselected package apt-transport-https.
(Reading database ... 246791 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_1.6.6_all.deb ...
Unpacking apt-transport-https (1.6.6) ...
Setting up apt-transport-https (1.6.6) ...
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...
One thing I did to fix this was after installing libdvd-pkg, run the following command to complete the setup:
If this problem persist, you can select not to do "automatic" updates.
@devguy's answer echoes
/usr/share/doc/libdvd-pkg/README.Debian
:For background, take a quick look at the installed package to see how it works and where/why the problem occurs: The package installs the debian source packaging for a
libdvdcss
package, and from thepostinst
script, downloads the.orig.tar.gz
source from videolan.org, and builds and installs binary packages. Most of the work is done in the/usr/lib/libdvd-pkg/b-i_libdvdcss.sh
script and in the Debian source package in/usr/share/libdvd-pkg/debian/
. The failure appears to be deliberately triggered before the source package build, sinceapt-get check
will always fail when anapt-get install
is running:The author's reason for deliberately triggering the failure when installing via
apt-get
is described in this bug report just a little more clearly than inREADME.Debian
:I assume the reason to build
libdvdcss.so
from source is to skirt some legal or other issue surrounding distributing binaries. However, reading through the bug report, it's not clear why the package builds and installs a Debian package from source, and nesting the package installs (i.e. installing thelibdvdcss
package during the install of thelibdvd-pkg
package) is the root problem here. Alternative means of building and installinglibdvdcss.so
from source that could skirt this issue aren't discussed anywhere I've found.Again, until the package's issues can be cleaned up, it appears @devguy's answer is the best interim workaround: