Ubuntu(16.04.2)学习笔记(一)如何解决dpkg: error processing install-info
一、服务器安装软件是出现以下的错误信息:
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的更多相关文章
- ubuntu(16.04.01)学习-day1
1.修改root用户密码 sudo passwd root 按提示进行设置. 2.从Ubuntu 16.04开始,用户可以实现改变启动器的位置,可以将启动器移到屏幕底部,但是无法移到右边或顶部.打开终 ...
- ubuntu 16.04下搜狗输入法不能输入中文解决
之前一段时间正常使用的搜狗输入法突然无法输出中文(具体现象是,可以呼出搜狗输入法界面,但是候选词列表无显示),解决之后记录下来,希望能为同样遇到这个问题的人提供参考.同时附linux下常见软件崩溃问题 ...
- Ubuntu 16.04安装Intel显卡驱动(解决Intel HD Graphics 630显卡驱动问题)
一般Ubuntu都默认包含了Intel显卡的驱动,如果没有,那么先确定是不是显卡太高,比如I7第7代的CPU核显在Ubuntu 16.04中是没有的,导致画面会很卡,原因是Linux 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 ...
- Ubuntu 16.04 LTS 下安装MATLAB2015b 以及Matlab system error解决办法
下载MATLAB2015b破解版 操作系统:Ubuntu 16.o4 LTS 程序文件:Matlab2015b-glnxa64破解版 解压提取文件:在ubuntu系统下可以直接提取压缩文件,得到三个文 ...
- ubuntu(16.04.01)学习-day2--高级命令
1.查找命令 find -name "hello.c" grep "test" grep "usb" -c -r /drivers/usb ...
- ubuntu(16.04.01)学习-day2
1.建立硬链接: ln main.c mainsoft 2.建立软链接:ln -s main.c soft 3.对文档进行统计 wc main.c返回行.单词数和字符数 4.查看相应命令的描述 wha ...
- ubuntu 16.04 tensorboard 学习
一.新建tensorboard的文件夹,并在该文件夹下打开终端进入python输入以下代码 ////////新建文件夹取名tensorboard 在该目录下打开终端 import tensorflow ...
- Ubuntu 16.04+GTX970 黑屏无法安装解决方法
参考http://www.linuxidc.com/Linux/2017-01/139318.htm http://blog.sciencenet.cn/blog-655584-877622.html ...
随机推荐
- about use Vue of methods
methods 处理事件 methods 在vue中处理一些逻辑方面的事情.vue事件监听的方式看上去有点违背分离的传统观念.而实际上vue中所有事件的处理方式和表达式都是严格绑定在当前的视图的vie ...
- 将ubuntu14.04 从mysql从5.5删除之后安装5.7遇到的一些问题(本篇不讨论热升级)
五一放假实在无聊 继续玩弄新的服务器.发现有台mysql版本实在有点老,估计是akiho直接使用 apt-get install mysql-server ,然后又没有更新到最新的源,然后无脑安装了5 ...
- 关于WrapPanel和RadioButton相互配合使用实WrapPanel现动态添加或删除项
最近在做一个项目的时候,有一个需求就是,通过RadioButton来控制一行内容的显示与不显示,当不显示的时候,下面的项能够占住相应的位置,当增加的时候,又会在原来的位置重新显示,如果使用一般的Gri ...
- AntDesign从入门到精通
第一 设计原则 官方网址:https://ant.design/index-cn 需要做出更好的设计决策,给予研发团队一种高确定性.低熵值的研发状态.同时,不同设计者在充分理解业务述求后,基于 Ant ...
- Mysql 悲观锁
转载:http://chenzhou123520.iteye.com/blog/1860954 悲观锁介绍: 悲观锁,正如其名,它指的是对数据被外界(包括本系统当前的其他事务,以及来自外部系统的事务处 ...
- hdu1285
解题思路:拓扑排序+优先队列,每次找入度为零时的点的时候且值最小的...我觉得题目有点问题,刚开始写的时候,以为样例的答案是1 4 2 3,毕竟1和4没输过啊...结果去看了样例一眼,傻了. #inc ...
- Matplotlib python 基本用法
1.简单的绘制函数 import matplotlib.pyplot as plt import numpy as np x = np.linspace(-1, 1, 50) y1 = x + 1 p ...
- MT【208】埃尔米特恒等式
设$S=\sum\limits_{k=1}^{+\infty}[\dfrac{116+3^{k-1}}{3^k}]\\T=\sum\limits_{k=1}^{+\infty}[\dfrac{116+ ...
- Qtree3题解(树链剖分+线段树+set)
外话:最近洛谷加了好多好题啊...原题入口 这题好像是SPOJ的题,挺不错的.看没有题解还是来一篇... 题意 很易懂吧.. 题解 我的做法十分的暴力:树链剖分(伪)+线段树+ std :: set ...
- Hdoj 基本输入输出8道(1089-1096)
Hdoj 1089 #include<bits/stdc++.h> using namespace std; int main() { int a,b; while(cin>> ...