Home >Database >Mysql Tutorial >ubuntu 9.10安装mysql 5.1错误解决

ubuntu 9.10安装mysql 5.1错误解决

WBOY
WBOYOriginal
2016-06-07 15:27:121379browse

在ubuntu 9.10中安装mysql-5.1可能会出现如下问题 useradd: cannot lock /etc/passwd; try again later. useradd: cannot lock /etc/shadow; try again later. 解决方法: 一位在/etc中多了两个文件passwd.lock shadow.lock将它们删除即可 sudo rm -f passwd

在ubuntu 9.10中安装mysql-5.1可能会出现如下问题

useradd: cannot lock /etc/passwd; try again later.

useradd: cannot lock /etc/shadow; try again later.

 

解决方法:

一位在/etc中多了两个文件passwd.lock   shadow.lock将它们删除即可

sudo rm -f passwd.lock

sudo rm -f shadow.lock

 

 

在重新安装即可

sudo apt-get install mysql-server-5.1

 

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn