sudo apt - 壊れたインストールエラーを修正

sudo apt - 壊れたインストールエラーを修正

これを実行しようとしましたが、sudo apt-get install kali-Linux-fullエラーが発生したため、これ以上進めません。ファイルをクリーンアップして削除しようとしましたが、rootですが権限がありません。 Linuxには初めての人なので、助けやヒント、コツなどを教えてくれてありがとう。

root@host:~$ sudo apt-get install kali-linux-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
kali-linux-full is already the newest version (2020.1.0).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 kali-linux-large : Depends: jsql-injection but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@host:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  freeglut3 gir1.2-notify-0.7 gir1.2-packagekitglib-1.0 gir1.2-polkit-1.0 gir1.2-secret-1
  ibverbs-providers libhwloc5 libibverbs1 libpackagekit-glib2-18
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  jsql-injection
The following NEW packages will be installed:
  jsql-injection
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1643 not fully installed or removed.
Need to get 0 B/1,982 kB of archives.
After this operation, 2,257 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
E: Invalid archive signature
E: Internal error, could not locate member control.tar.{zstlz4gzxzbz2lzma}
E: Prior errors apply to /var/cache/apt/archives/jsql-injection_0.81-0kali2_all.deb
debconf: apt-extracttemplates failed: No such file or directory
dpkg-deb: error: '/var/cache/apt/archives/jsql-injection_0.81-0kali2_all.deb' is not a Debian format archive
dpkg: error processing archive /var/cache/apt/archives/jsql-injection_0.81-0kali2_all.deb (--unpack):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/jsql-injection_0.81-0kali2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@host:~$ 

ベストアンサー1

この問題が発生しました。問題を解決するために、debファイルの名前を変更した後に更新が正常に行われました。

sudo mv /var/cache/apt/archives/jsql-injection_0.81-0kali2_all.deb \
/var/cache/apt/archives/jsql-injection_0.81-0kali2_all.deb.old
sudo apt-get install jsql-injection

その後、別のインストールのために戻りました。お役に立てば幸いです。

おすすめ記事