从 Ubuntu 中删除 chromedriver [英] Delete chromedriver from Ubuntu

查看:59
本文介绍了从 Ubuntu 中删除 chromedriver的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更新我按照此说明安装的 chromedriver 版本 https://christopher.su/2015/selenium-chromedriver-ubuntu/

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

chromedriver 在哪里

whereis chromedriver

命令.并使用 rm 从那里删除文件.但是

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

chromedriver -v

chromedriver -v

仍然给出了旧版本的价值.完全删除当前 chromedriver 的另一种方法是什么?我还尝试按照此主题进行更新 如何在 Ubuntu 上更新 Chromedriver?但是 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

推荐答案

如果您确定您已经使用以下方法将其删除:

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

sudo rm -f/usr/bin/chromedriver

并且您说 chromedriver -v 仍在打印输出,然后再次尝试运行 which chromedriver,然后 rm 运行文件直到它什么都不返回.

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"

并删除它们.

这篇关于从 Ubuntu 中删除 chromedriver的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆