You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在Ubuntu中安装Kali工具报错求助:katoolin目录已存在

Fixing the "katoolin directory already exists" Error on Ubuntu

Hey there! No worries, this is a super common git error and easy to fix. Let's break down what's happening first:

The error fatal: destination path 'katoolin' already exists and is not an empty directory. just means there's already a folder named katoolin in your current working directory, and it's not empty—git can't clone into an existing non-empty folder by default.

Here are 3 straightforward solutions you can try:

  • Option 1: Delete the existing folder and re-clone
    If you don't need anything in the existing katoolin folder, just remove it first:

    rm -rf katoolin
    

    Then run your original command again (add sudo to the cp part if you get a permission error):

    git clone https://github.com/LionSec/katoolin.git && sudo cp katoolin/katoolin.py /usr/bin/katoolin
    
  • Option 2: Update the existing repository
    If you want to keep the existing folder, just navigate into it and pull the latest code instead of re-cloning:

    cd katoolin
    git pull
    sudo cp katoolin.py /usr/bin/katoolin
    
  • Option 3: Clone to a new directory
    If you don't want to touch the existing folder, clone the repo to a new named directory instead:

    git clone https://github.com/LionSec/katoolin.git katoolin-new && sudo cp katoolin-new/katoolin.py /usr/bin/katoolin
    

A quick heads-up: copying files to /usr/bin requires admin privileges, so adding sudo before the cp command will fix any "permission denied" errors you might run into.

内容的提问来源于stack exchange,提问作者Subeet

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 08:17:32