Tag Archives: network

总结升级ubuntu和debian遇到的一些错误及解决办法

如没有特别说明,以下操作均需要root权限。

mysql: symbol lookup error

cd /usr/local/lib
mkdir temp
mv /usr/local/lib/libreadline* temp
ldconfig
apt-get update

The following signatures couldn’t be verified because the public key is not available

apt-get update的时候,有时候会出现公钥错误,比如:

W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2EA8F35793D8809A

或者:

W: There is no public key available for the following key IDs:
8B48AD6246925553

解决办法:安装keyring,往ubuntu server添加公钥信息.

sudo apt-get install debian-keyring debian-archive-keyring && sudo apt-key update
sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 8B48AD6246925553

注意第二条命令中的key ID替换成你的key ID.

升级ubuntu从11.10到12.04,网络出现异常

错误描述:无法打开网络配置工具,开机启动出现如下:

Waiting up to 60 more seconds for network configuration...

解决办法:确保你的文件”/etc/network/interfaces”只有如下两行:

auto lo
iface lo inet loopback

有多余的请删除,然后重新启动。

debian安装goagent

debian 版本:Debian GNU/Linux 7 按照官方网站的ubuntu的安装步骤安装所需软件,因为debian里面的包比较古老,因此推荐从源代码安装或者从github安装最新的软件版本。我在运行proxy.py的时候就出现如下问题:

Traceback (most recent call last):
  File "proxy.py", line 1341, in <module>
    http_util = HTTPUtil(max_window=common.GOOGLE_WINDOW, ssl_validate=common.GAE_VALIDATE or common.PAAS_VALIDATE, ssl_obfuscate=common.GAE_OBFUSCATE, proxy=common.proxy)
  File "proxy.py", line 810, in __init__
    self.ssl_context = OpenSSL.SSL.Context(OpenSSL.SSL.TLSv1_METHOD)
AttributeError: 'NoneType' object has no attribute 'SSL'

原因是debian的pyopenssl包比较老,推荐用python的包管理器安装:

sudo apt-get install python-pip
sudo pip install pyOpenSSL