相关疑难解决方法(0)

如何让 add-apt-repository 通过代理工作?

我正在尝试按照wiki.linaro.org(在我的 Ubuntu 10.04 VM 上)上的“在 Ubuntu 10.04(Lucid)和 10.10(Maverick)主机上安装交叉工具链”说明进行操作。第一步是:

sudo add-apt-repository ppa:linaro-maintainers/toolchain
Run Code Online (Sandbox Code Playgroud)

但是当我运行时,我得到:

Error reading https://launchpad.net/api/1.0/~linaro-maintainers/+archive/toolchain: <urlopen error [Errno 110] Connection timed out>
Run Code Online (Sandbox Code Playgroud)

我猜问题出在我雇主代理服务器的配置上,尤其是 HTTPS。

当我在 Firefox 中打开https://launchpad.net/api/1.0/~linaro-maintainers/+archive/toolchain时,我得到“连接超时”。然后我进入 Firefox 首选项 -> 高级 -> 网络 -> 设置...并将 HTTP 代理设置为“网关”,将端口设置为 8080,并选中“将此代理服务器用于所有协议”。然后页面加载。这支持了我的理论。

我试过设置 http_proxy 和 https_proxy 环境变量(小写和大写):

$ set | grep -i proxy
HTTPS_PROXY=https://gateway:8080
HTTP_PROXY=http://gateway:8080
http_proxy=http://gateway:8080
https_proxy=https://gateway:8080
Run Code Online (Sandbox Code Playgroud)

我也尝试将它们更改为:

$ set | grep -i proxy
HTTPS_PROXY=gateway:8080
HTTP_PROXY=gateway:8080
http_proxy=gateway:8080
https_proxy=gateway:8080
Run Code Online (Sandbox Code Playgroud)

我尝试将第二行添加到 /etc/apt/apt.conf:

Acquire::http::proxy "http://gateway:8080/";
Acquire::https::proxy "https://gateway:8080/";
Run Code Online (Sandbox Code Playgroud)

但我继续遇到同样的错误。

我该如何解决这个问题?

更新:我跟着指示 …

proxy add-apt-repository

128
推荐指数
4
解决办法
24万
查看次数

如何模拟 Windows 窗口捕捉/网格快捷方式?

在 Windows 中,您有以下快捷方式:

  • WinArrow Up ?: 最大化当前窗口
  • WinArrow Down ?: 取消最大化
  • WinArrow Right ?: 最大化,设置宽度为屏幕宽度的一半,将窗口贴在右边
  • WinArrow Left ?: 最大化,设置宽度为屏幕宽度的一半,将窗口粘在左边

我对最后两个快捷方式特别感兴趣。

windows shortcut-keys compiz

51
推荐指数
3
解决办法
2万
查看次数

将窗口与键盘快捷键对齐?

可能的重复:
是否有将窗口平铺到屏幕左侧或右侧的快捷方式?

我在 VMWare Workstation 中运行 12.04。

Windows 7 提供了一个非常有用的功能:使用Windows+LeftWindows+Right在屏幕的左/右半部分对齐当前窗口(对于宽屏幕上的终端窗口等很有用)。

是否有可用于 Ubuntu 的等价物?

到目前为止,我能够模拟Windows+ Up(最大化窗口),但找不到左/右对齐的任何内容。

需要明确的是:我不是在谈论“移动到工作区”左右,我是在谈论调整当前屏幕/工作区上的当前窗口大小以仅占据屏幕的左/右半部分。

vmware shortcut-keys window-management 12.04

42
推荐指数
1
解决办法
4万
查看次数

如何在 Unity 2D 中获得 Aero Snap?

我真的很怀念 Unity 3D 中的“Aero Snap”窗口捕捉功能。有什么方法可以在 Unity 2D 中获得它或替代它吗?

window-manager usability window unity-2d

19
推荐指数
2
解决办法
7344
查看次数

像在 gnome 中一样使用 Xfce 自动调整窗口大小

我想将我的窗口拖到桌面的左侧或右侧,并像在 Gnome 或 Windows 7 上一样自动调整它们的大小。并在将它们拖到顶部时最大化它们。这在 Xfce 中怎么可能?

xfce

17
推荐指数
2
解决办法
2万
查看次数