Delete chromedriver from Ubuntu

送分小仙女□ 提交于 2020-06-17 05:14:10

问题


I want to update the version of chromedriver that I installed following this instruction https://christopher.su/2015/selenium-chromedriver-ubuntu/

To do this, I want to delete the current version. I tried to do this by finding the desired folders with the

whereis chromedriver

command. And deleting the files from there using rm. But

chromedriver -v

still gives the value of the old version. What is another way to completely remove the current chromedriver? Also i tried just update following this topic How to update Chromedriver on Ubuntu? But chromedriver -v still return old version


回答1:


If you're positive you've already removed it using:

sudo rm -f /usr/bin/chromedriver

And you say that chromedriver -v is still printing output, then try running which chromedriver again, and rming the file until it returns nothing.

You might need to delete files at:

sudo rm -f /usr/bin/chromedriver
sudo rm -f /usr/local/bin/chromedriver
sudo rm -f /usr/local/share/chromedriver

If you want to go on a rampage and delete every instance of it, even those that are not on your path, you can try finding all instances of it using:

locate chromedriver

or (may take a long time)

find / -name "chromedriver"

and remove those.



来源:https://stackoverflow.com/questions/57570005/delete-chromedriver-from-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!