Top Menu

修复apt错误

用任何apt命令都会出现报错

Errors were encountered while processing: python-dnspython python-idna python-crypto python-parsedatetime python-pyasn1 python-wheel python-tz python-pkg-resources python-configargparse python-gi python-six python-augeas python-zope.interface python-psutil python-pbr python-enum34 python-cryptography python-virtualenv python-funcsigs python-zope.hookable python-dbus python-ipaddress python-pip python-pyicu python-zope.event python-xdg python-rfc3339 python-setuptools python-urllib3 python-configobj python-chardet python-acme python-openssl python-certbot python-zope.component python-certbot-apache python-mock python-requests certbot E: Sub-process /usr/bin/dpkg returned an error code (1)

Continue Reading 0

解决No module named ‘cymysql’问题

解决No module named ‘cymysql’问题

出错信息

2018-08-22 22:36:58 ERROR db_transfer.py:266 Traceback (most recent call last): File "/root/shadowsocksr/db_transfer.py", line 248, in thread_db rows = db_instance.pull_db_all_user() File "/root/shadowsocksr/db_transfer.py", line 373, in pull_db_all_user import cymysql ImportError: No module named 'cymysql'

Continue Reading 0

Wireguard 比OpenVPN更加先进的点对点VPN

Wireguard是一个比OpenVPN更加先进的点对点VPN系统,作用是将分布在不同数据中心的VPS通过内网连接起来,这样就可以让多台VPS在一个更加安全和方便的局域网之内进行通信。例如VPS-1需要访问VPS-2的数据库,那么无需在VPS-2上开放3306端口,VPS-1直接就可以通过内网访问VPS-2的数据库。

在Debian 9上安装Wireguard

环境

  • Linode
  • Debian 9

注意

要在Linode上安装Wireguard必须要使用自定义内核,否则直接跟着官网的教程步骤,在运行wg-quick up wg0 命令的时候会出现以下错误

root@jp:~# wg-quick up wg0 [#] ip link add wg0 type wireguard RTNETLINK answers: Operation not supported Unable to access interface: Protocol not supported [#] ip link delete dev wg0 Cannot find device "wg0"

Continue Reading 8

Powered by WordPress. Designed by WooThemes