First, look for the website updated by sqlmap and copy it down
sqlmap --update
Then open the directory address of the sql storage, view and delete
cd /usr/share/
ls #查看目录下是否存在sqlmap
rm -rf sqlmap #删除sqlmap
Finally, clone and install sqlmap from the official website
git clone https://github.com/sqlmapproject/sqlmap
What I show on the picture is that the sqlmap is deleted first, which is not desirable
Finally check whether it is in
ls #显示/usr/share/目录下的文件
The update is complete and the installation is successful