我在带有 Opal 2.0 兼容 NVMe SSD 的 Lenovo ThinkPad L480 上全新安装了 Ubuntu 18.04.1。据我所知,驱动器总是加密的,但我需要设置一个密码,以便加密密钥本身也受到保护。
问题:
因为我没有在这个时候使用他们,我试图卸载virtualenv并virtualenvwrapper通过Ubuntu软件中心。现在,每当我打开控制台时,都会收到以下错误消息:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named virtualenvwrapper.hook_loader
virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module virtualenvwrapper.hook_loader, check that virtualenv has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly.
Run Code Online (Sandbox Code Playgroud)
此外,该目录~/.virtualenvs/仍然存在。
我怎样才能让我的系统恢复到安装virtualenv和之前的干净和功能状态virtualenvwrapper?
更新
按照建议,我检查了以下文件中virtualenv每个文件的出现是否有负面结果:
~/.bashrc
~/.profile
/etc/profile
/etc/profile.d/*
/etc/environment
Run Code Online (Sandbox Code Playgroud) 过去我安装了 Node.js。现在我尝试按照本指南更新它,最终有两个版本,node版本 0.10.7 和nodejs版本 0.12.7。为了解决这个问题,我想完全删除它并重新安装它。apt-get remove nodejs工作正常,但不是apt-get remove node:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'node' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Run Code Online (Sandbox Code Playgroud)
但:
$ which node
/usr/local/bin/node
Run Code Online (Sandbox Code Playgroud)
删除此文件是否安全,或者我是否会将剩余物潜伏在其他地方?
18.04 ×1
apt ×1
encryption ×1
nodejs ×1
nvme ×1
opal-2.0 ×1
thinkpad ×1
uninstall ×1
virtualenv ×1