之前阿里云upload_max_filesize上传默认2M,修改php.ini 后,重启apache也不生效,只能重新更换阿里云系统盘重新配置系统,可是apt-get 缺发生了 E: Unable to locate package *** 什么命令都不生效,才发现sources.list 数据源出问题了、
这时候需要更新源列表,需要先备份/etc/apt/spurce.list(丢失的话,重新创建该文件),然后添加新的源。 我用的阿里的,最后执行apt-get update 就可以了
源文件内容:
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse