一、服务器安装软件是出现以下的错误信息:

www@TinywanAliYun:~$ sudo apt-get install letsencrypt
Reading package lists... Done
Building dependency tree
Reading state information... Done
letsencrypt is already the newest version (0.17.-+ubuntu16.04.1+certbot+).
upgraded, newly installed, to remove and not upgraded.
not fully installed or removed.
After this operation, B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up php7.-mysql (7.0.-0ubuntu0.16.04.) ...
dpkg: error processing package php7.-mysql (--configure):
subprocess installed post-installation script returned error exit status
Errors were encountered while processing:
php7.-mysql
E: Sub-process /usr/bin/dpkg returned an error code ()

二、具体步骤

1、将info文件夹更名

命令如下:www@TinywanAliYun:~# mv /var/lib/dpkg/info/ /var/lib/dpkg/info_old/

2、再新建一个新的info文件夹

命令如下:www@TinywanAliYun:~# mkdir /var/lib/dpkg/info/

3、更新文件列表:apt-get update

命令如下:www@TinywanAliYun:~# apt-get update

信息如下:

www@TinywanAliYun:~$ sudo apt update
[sudo] password for www:
Hit: http://mirrors.cloud.aliyuncs.com/ubuntu xenial InRelease
Hit: http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates InRelease
Hit: http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security InRelease
Hit: http://ppa.launchpad.net/certbot/certbot/ubuntu xenial InRelease

4、重新安装 

命令如下:www@TinywanAliYun:~# apt-get -f install

信息如下:

www@TinywanAliYun:~$ sudo  apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
upgraded, newly installed, to remove and not upgraded.
not fully installed or removed.
After this operation, B of additional disk space will be used.
Setting up php7.-mysql (7.0.-0ubuntu0.16.04.) ...

5、执行完上一步操作后会在新的info文件夹下生成一些文件,现将这些文件全部移到info_old文件夹下 

命令如下:www@TinywanAliYunu:~# mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old/

6、把自己新建的info文件夹删掉 

命令如下:www@TinywanAliYun:~# rm -rf /var/lib/dpkg/info

7、把info_old文件夹重新改回info 

命令如下:www@TinywanAliYun:~# mv /var/lib/dpkg/info_old/ /var/lib/dpkg/info/

8、输入上述命令之后

 在执行 sudo apt-get update 就不会有问题了

9、继续到第一步的安装信息

www@TinywanAliYun:~$ sudo apt-get install letsencrypt
Reading package lists... Done
Building dependency tree
Reading state information... Done
letsencrypt is already the newest version (0.17.-+ubuntu16.04.1+certbot+).
upgraded, newly installed, to remove and not upgraded.

 10、安装结束

Ubuntu(16.04.2)学习笔记(一)如何解决dpkg: error processing install-info的更多相关文章

  1. ubuntu(16.04.01)学习-day1

    1.修改root用户密码 sudo passwd root 按提示进行设置. 2.从Ubuntu 16.04开始,用户可以实现改变启动器的位置,可以将启动器移到屏幕底部,但是无法移到右边或顶部.打开终 ...

  2. ubuntu 16.04下搜狗输入法不能输入中文解决

    之前一段时间正常使用的搜狗输入法突然无法输出中文(具体现象是,可以呼出搜狗输入法界面,但是候选词列表无显示),解决之后记录下来,希望能为同样遇到这个问题的人提供参考.同时附linux下常见软件崩溃问题 ...

  3. Ubuntu 16.04安装Intel显卡驱动(解决Intel HD Graphics 630显卡驱动问题)

    一般Ubuntu都默认包含了Intel显卡的驱动,如果没有,那么先确定是不是显卡太高,比如I7第7代的CPU核显在Ubuntu 16.04中是没有的,导致画面会很卡,原因是Linux 4.4内核不包含 ...

  4. Ubuntu 16.04 安装 Wireshark分析tcpdump的pcap包——sudo apt install wireshark-qt

    tcpdump 的抓包保存到文件的命令参数是-w xxx.cap   抓eth1的包  tcpdump -i eth1 -w /tmp/xxx.cap    抓 192.168.1.123的包  tc ...

  5. Ubuntu 16.04 LTS 下安装MATLAB2015b 以及Matlab system error解决办法

    下载MATLAB2015b破解版 操作系统:Ubuntu 16.o4 LTS 程序文件:Matlab2015b-glnxa64破解版 解压提取文件:在ubuntu系统下可以直接提取压缩文件,得到三个文 ...

  6. ubuntu(16.04.01)学习-day2--高级命令

    1.查找命令 find -name "hello.c" grep "test" grep "usb" -c -r /drivers/usb ...

  7. ubuntu(16.04.01)学习-day2

    1.建立硬链接: ln main.c mainsoft 2.建立软链接:ln -s main.c soft 3.对文档进行统计 wc main.c返回行.单词数和字符数 4.查看相应命令的描述 wha ...

  8. ubuntu 16.04 tensorboard 学习

    一.新建tensorboard的文件夹,并在该文件夹下打开终端进入python输入以下代码 ////////新建文件夹取名tensorboard 在该目录下打开终端 import tensorflow ...

  9. Ubuntu 16.04+GTX970 黑屏无法安装解决方法

    参考http://www.linuxidc.com/Linux/2017-01/139318.htm http://blog.sciencenet.cn/blog-655584-877622.html ...

随机推荐

  1. Which path should be used jdk or jre for JAVA_HOME environment variable?

    https://stackoverflow.com/questions/17601827/which-one-should-java-home-to-point-jdk-or-jre 临时变更JAVA ...

  2. JQuery 操作 radio 被坑一例

    .removeAttr('checked'); .prop('checked',false); .prop('checked',true); 与 .attr("checked",t ...

  3. MySQL分区和分表

    一.概念 1.为什么要分表和分区?日常开发中我们经常会遇到大表的情况,所谓的大表是指存储了百万级乃至千万级条记录的表.这样的表过于庞大,导致数据库在查询和插入的时候耗时太长,性能低下,如果涉及联合查询 ...

  4. Node querystring

    const  qs =require('querystring'); var str="uname=tom&upwd=123&pno=33&kw=js;" ...

  5. vue-cli webpack项目npm run dev启动过程

    前言 通过vue init webpack和npm install命令初始化项目后,执行npm run dev就打开了网站http://localhost:8080.初学者不知道index.html. ...

  6. C#實現XML的增刪查改

    命名空間:using System.Xml; 1.查找某個節點是否存在: private XmlDocument xmldoc; private string mod="1"; p ...

  7. js對象構造

    創建對象的3種方式: 1. var a=new Object() a.attributes=“1”: 2. var a={attributes:"1",aa:"2&quo ...

  8. std::binary_serach, std::upper_bound以及std::lower_bound

    c++二分查找的用法 主要是 std::binary_serach,  std::upper_bound以及std::lower_bound 的用法,示例如下: std::vector<int& ...

  9. Educational Codeforces Round 26 B,C

    B. Flag of Berland 链接:http://codeforces.com/contest/837/problem/B 思路:题目要求判断三个字母是否是条纹型的,而且宽和高相同,那么先求出 ...

  10. UVa - 10339

    It has been said that a watch that is stopped keeps better time than one that loses 1 second per day ...