34c3ctf/extract0r/

36 篇文章 1 订阅

搭建环境

问题一:使用Ubuntu17,发现源出现问题
# apt-get update
Hit:1 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu zesty InRelease
Ign:2 http://cn.archive.ubuntu.com/ubuntu zesty InRelease
Err:5 http://cn.archive.ubuntu.com/ubuntu zesty Release
  404  Not Found [IP: 91.189.91.23 80]
Err:6 http://cn.archive.ubuntu.com/ubuntu zesty-security Release
  404  Not Found [IP: 91.189.91.23 80]
Err:7 http://cn.archive.ubuntu.com/ubuntu zesty-updates Release
  404  Not Found [IP: 91.189.91.23 80]
Reading package lists... Done
E: The repository 'http://cn.archive.ubuntu.com/ubuntu zesty Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

改为使用镜像ubuntu18

问题二:卡住安装tzdata

tzdata会以交互方式提醒用户选择使用位置。会在这一直卡住
首选的方法是在Dockerfile的第一条RUN之前加入以下配置:

ENV DEBIAN_FRONTEND=noninteractive

问题三:mysql5.6官方文档说命令行方式写密码不安全

mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

安装低版本或把地址账号密码写入my.cnf
添加源
add-apt-repository ‘deb http://archive.ubuntu.com/ubuntu trusty main’
add-apt-repository ‘deb http://archive.ubuntu.com/ubuntu trusty main’

唉,未解决,脑阔炸了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值