libdvd-pkg: `apt-get check` gagal, Anda mungkin memiliki paket yang rusak. Batalkan

38

FYI: Saya menggunakan Kubuntu 18.04

Saya terus mendapatkan kesalahan berikut ketika saya menginstal apt-transport-https

Hal-hal yang saya sudah lelah untuk memperbaiki kesalahan ini adalah:

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

Kesalahan yang terus saya lihat adalah

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...
devguy
sumber

Jawaban:

69

Satu hal yang saya lakukan untuk memperbaikinya adalah setelah menginstal libdvd-pkg, jalankan perintah berikut untuk menyelesaikan pengaturan:

sudo dpkg-reconfigure libdvd-pkg

Jika masalah ini tetap ada, Anda dapat memilih untuk tidak melakukan pembaruan "otomatis".

devguy
sumber
5
20 Juni 2019 Ubuntu 18,04 perbaikan ini berhasil untuk saya
Michael Durrant
2
Bekerja di 19,04 juga.
alfC