14.04 升级到16.04

14.04 升级到16.04

https://www.jianshu.com/p/7b1adaf7a38b

https://blog.csdn.net/dylloveyou/article/details/78232656

 

安装 bcmath

add-apt-repository ppa:ondrej/php

apt update

apt install php7.1-bcmath

更新源

升级版本

1.查看目前版本

root@docker01:~# lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 14.04.5 LTS

Release: 14.04

Codename: trusty

2.执行更新命令

root@docker01:~# apt-get update && apt-get dist-upgrade

3.重启系统

root@docker01:~# reboot

4.进行升级

root@docker01:~# do-release-upgrade

提示没有新的版本

root@docker01:~# do-release-upgrade

Checking for a new Ubuntu release

No new release found

需要改动apt源

把 /etc/apt/sources.list下面的14的源改为16的源,这里用的是阿里的源

deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe

......

改为

deb http://mirrors.aliyun.com/ubuntu/ xenial main multiverse restricted universe

......

完成如下:注意xenial就是16.04的

deb http://mirrors.aliyuncs.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyuncs.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyuncs.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyuncs.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyuncs.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyuncs.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyuncs.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyuncs.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyuncs.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyuncs.com/ubuntu/ xenial-backports main restricted universe multiverse

 

再次执行 do-release-upgrade

这次就开始升级了

随着升级的系统,必须重启某些服务,选择Yes并继续

 

最后系统会提示删除过时的包,输入“Y”

升级过程完成后,需重新启动系统

5.验证升级完成

root@docker01:~# lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 16.04.3 LTS

Release: 16.04

Codename: xenial

现在是16.04版本的系统了。。。

 

redis 和 swoole php console 和 fpm的php.ini 都要重新添加

©️2020 CSDN 皮肤主题: 大白 设计师: CSDN官方博客 返回首页
实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值