hashcat:依赖:libminizip1t64,但无法安装 E:无法纠正问题,您持有损坏的软件包

问题描述 投票:0回答:1

我正在使用 Parros OS 。最近,我通过以下评论更新了我的 apt 软件包:

sudo apt update
,它显示了一些软件包告诉我,这些软件包不再需要了。我手动卸载了这个软件包。然后我得到了这个:

$sudo apt full-upgrade 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  hashcat
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

我尝试过

sudo apt install hashcat
但它显示:

└──╼ $sudo apt install hashcat
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 hashcat : Depends: libminizip1t64 but it is not installable
E: Unable to correct problems, you have held broken packages.

我试图修复损坏的包裹:

sudo apt-get -f install
但它显示:

sudo apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
linux package apt parrot-os hashcat
1个回答
0
投票

解决方案是按照以下步骤手动安装“hashcat”:

第 1 步:安装先决条件

在安装Hashcat之前,您需要确保您的系统具有必要的依赖项。打开终端并安装构建必需品和其他依赖项,如下所示:

sudo apt 更新 sudo apt install build-essential git


### Step 2: Download Hashcat

Next, download the latest version of Hashcat from the official Hashcat GitHub repository. You can clone the repository directly using git:

git clone https://github.com/hashcat/hashcat.git
cd hashcat


This will download the Hashcat source code into a directory named `hashcat` and then change into that directory.

### Step 3: Compile Hashcat

Once the source code is downloaded, you can compile it:

make

This command will start the compilation process. Wait for it to complete without errors.

### Step 4: Check Hashcat Installation

After compiling Hashcat, you can check if it's working by running:

./hashcat --version

This command should output the version of Hashcat you've just compiled, indicating that it is successfully installed.

### Step 5: Optionally Install Hashcat System-wide

The steps above will get Hashcat running from within its directory, but if you prefer to run Hashcat from anywhere without specifying its directory, you can optionally install it system-wide:

sudo make install

This command installs Hashcat into your system so that you can just run `hashcat` from any terminal window without needing to navigate to the hashcat directory.

### Additional Steps

- **Update Hashcat**: Since you've cloned the Hashcat repository, you can update it to the latest version by navigating to the `hashcat` directory and pulling the latest changes from GitHub:

  cd hashcat
  git pull
  make
  sudo make install

- **Running Hashcat**: To run Hashcat, you can now simply type `hashcat` in your terminal followed by its options. For example, to see all options, you would run:

  hashcat --help

© www.soinside.com 2019 - 2024. All rights reserved.