34c3ctf/extract0r/

搭建环境

问题一:使用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’

唉,未解决,脑阔炸了

发布了61 篇原创文章 · 获赞 22 · 访问量 4242

猜你喜欢

转载自blog.csdn.net/yiqiushi4748/article/details/103978630