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 ...
随机推荐
- Linux 文件系统概览
本文导航 -定义07% -文件系统的基本功能12% -目录结构26% -Linux 统一目录结构50% -文件系统类型74% -挂载81% -结论90% -下个月92% 本文旨在高屋建瓴地来讨论 ...
- number (1)eclipse 连接数据库报错 数据库信息不对导致的出错
- centos安装图形化界面
用下面命令查看查看是哪个模式 systemctl get-default 开机启动图形界面 systemctl set-default graphical.target(图形界面模式) reboot( ...
- [转] python 模块学习 hashlib
转自: http://www.cnblogs.com/BeginMan/p/3328172.html 一.hashlib概述 涉及加密服务:14. Cryptographic Services 其中 ...
- 关于封装了gevent的request grequest库的使用与讨论
最近迷上了gevent所以研究很多gevent相关的东西. 但是我现在不想写相关gevent和greenlet的东西.因为这一块内容实在太多太大太杂,我自己也还没有完全弄明白,所以等我完全搞清楚测试也 ...
- vue render function & dataset
vue render function & dataset https://vuejs.org/v2/guide/render-function.html#The-Data-Object-In ...
- 牛客网练习赛7-B-购物
在遥远的东方,有一家糖果专卖店. 这家糖果店将会在每天出售一些糖果,它每天都会生产出m个糖果,第i天的第j个糖果价格为C[i][j]元. 现在的你想要在接下来的n天去糖果店进行选购,你每天可以买多个糖 ...
- std::binary_serach, std::upper_bound以及std::lower_bound
c++二分查找的用法 主要是 std::binary_serach, std::upper_bound以及std::lower_bound 的用法,示例如下: std::vector<int& ...
- 并发容器——ConcurrentHashMap
ConcurreentHashMap的实现原理与使用 ConcurrentHashMap是线程安全且高效的HashMap. 为什么要使用ConcurrentHashMap 在并发编程中使用HashMa ...
- 省选前的th题
沙茶博主终于整完了知识点并学完了早该在NOIP之前学的知识们 于是终于开始见题了,之前那个奇怪的题单的结果就是这个了 题目按沙茶博主的做题顺序排序 个人感觉(暂时)意义不大的已被自动忽略 洛谷 491 ...