Answers:
您无法在Ubuntu 13.10中删除Unity购物镜头,因为没有购物镜头。Ubuntu 13.10带有一项称为Unity Smart Scopes(或“ 100范围”)的功能,该功能使用大量范围在Dash中显示结果,其中有一些用于购物。因此,如果您不想在Dash中使用购物建议,则必须禁用这些购物范围(请参见下文)。没有购物建议的Unity Dash
要在Ubuntu 13.10 Saucy Salamander中禁用Dash插件(作用域):
所有Dash搜索插件(作用域)都应列出。
要禁用插件,请单击它,然后单击“禁用”按钮。稍后,您可以以相同的方式将其启用。
如果您不希望在Dash中获得购物建议,请禁用以下范围(按照上面的说明进行操作):Amazon,Ebay,Music Store,Popular Tracks Online,Skimlinks,Ubuntu One Music Search和Ubuntu Shop。
要从命令行禁用所有这些购物Dash插件/范围,请使用以下命令
gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"
事实证明,修复Ubuntu具有解决方案:
#!/bin/bash
# Figure out the version of Ubuntu that you're running
V=`/usr/bin/lsb_release -rs`;
# The privacy problems started with 12.10, so earlier versions should do nothing
if [ $V \< 12.10 ]; then
echo "Good news! Your version of Ubuntu doesn't invade your privacy.";
else
# Turn off "Remote Search", so search terms in Dash don't get sent to the internet
gsettings set com.canonical.Unity.Lenses remote-content-search none;
# If you're using earlier than 13.10, uninstall unity-lens-shopping
if [ $V \< 13.10 ]; then
sudo apt-get remove -y unity-lens-shopping;
# If you're using a later version, disable remote scopes
else
gsettings set com.canonical.Unity.Lenses disabled-scopes \
"['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope',
'more_suggestions-populartracks.scope', 'music-musicstore.scope',
'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope',
'more_suggestions-skimlinks.scope']";
fi;
# Block connections to Ubuntu's ad server, just in case
if ! grep -q productsearch.ubuntu.com /etc/hosts; then
echo -e "\n127.0.0.1 productsearch.ubuntu.com" | sudo tee -a /etc/hosts >/dev/null;
fi;
echo "All done. Enjoy your privacy.";
fi
对于13.10,请进行gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']";
编辑/etc/hosts
以将请求重定向productsearch.ubuntu.com
到127.0.0.1(localhost)
我假设您也想卸下其他一些镜头。因此,首先了解一下实际安装的内容:
打开终端:CTRLALTT并输入
apt-cache policy "unity-lens-*"|grep -B1 Installed
这将为您提供以下形式的列表:
unity-lens-video:
Installed: (none)
--
unity-lens-shopping:
Installed: (none)
--
unity-lens-friends:
Installed: 0.1.1bzr13.04.12-0ubuntu1
--
....
现在,您可以决定要删除的内容,例如
sudo apt-get remove unity-lens-friends
直到达到所需的系统状态。
每当您不确定镜头将要做什么时,您都可以通过获得信息apt-cache show
,例如
apt-cache show unity-lens-files
往下走一点,您将看到:
Description-en: File lens for unity
This package contains the "file" lens which can be used
inside Unity to browse your files.