Linux apt-get error

[email protected]:~/ejabberd-15.03$ sudo apt-get install mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql
[email protected]:~/ejabberd-15.03$ sudo apt-get install mysql-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run ‘apt-get -f install‘ to correct these:
The following packages have unmet dependencies:
mysql-client : Depends: mysql-client-5.5 but it is not going to be installed
rabbitmq-server : Depends: erlang-nox (>= 1:13.b.3) but it is not going to be installed or
esl-erlang but it is not installable
E: Unmet dependencies. Try ‘apt-get -f install‘ with no packages (or specify a solution).

解决方法:
使用aptitude命令来安装mysql-client-5.1

使用这个工具,当某个库依赖的库与当前版本不一致时,aptitude 会尝试降级当前这个库的版本,同时解决降级这个库对其它软件的依赖性的影响, 最终成功安装apt-get 没法安装的软件

[email protected]:/etc/apt/sources.list.d$ sudo aptitude install mysql-client-5.1

The following NEW packages will be installed:
libdbd-mysql-perl{a} libdbi-perl{a} libmysqlclient16{a}
libnet-daemon-perl{a} libplrpc-perl{a} mysql-client-5.1
mysql-client-core-5.1{a} mysql-common{a}
The following partially installed packages will be configured:
rabbitmq-server{b}
0 packages upgraded, 8 newly installed, 0 to remove and 35 not upgraded.
Need to get 11.3MB of archives. After unpacking 27.6MB will be used.

时间: 2024-12-19 02:16:32

Linux apt-get error的相关文章

Linux中syntax error near unexpected token 错误提示解决方法

Linux中syntax error near unexpected token ... 错误提示有一般有两种原因: 1)window和Linux下换行符不一致导致 window下的换行和Linux下的换行不同,如果将window下编写的代码文件上传到Linux下,容易出现该错误提示.可用 vi -b 文件名 或者cat -v 文件名命令查看,如果是游云换行符引起的,则每行后面有^M,这时只要将每个^M去掉即可. 2)Linux指令之间没有空格隔开

Linux下mysql ERROR 1045,Mysql无法执行批处理

Linux下mysql ERROR 1045: Access denied for user: '[email protected]' (Using password: NO) 每次启用mysql都出现这个问题 然后我键入命令# mysql -pEnter password: Welcome to the MySQL monitor.  Commands endwith ; or \g.Your MySQL connection id is 35 to server version: 4.0.2

Linux下MySQL Error 1130 不能远程访问(转)

Linux下MySQL Error 1130 不能远程访问 内容简介:远程连接MySQL时总是报出erro 2003: Can't connect to MySQL server on '211.87.***.***' (111),昨天查了好几个小时才找到解决方案,如下:…… 最近做Linux项目用到MySQL数据库,可是远程连接MySQL时总是报出erro 2003: Can't connect to MySQL server on '211.87.***.***' (111),昨天查了好几个

新部署的linux web服务器error Host ‘*.*.*.*’ is not allowed to connect to this MySQL server

最近上头交给我个任务,把WINDOWS平台下开发的网站,部署在LINUX环境上. 把mysql安装好了,所有表单都导入没问题,然后代码都放在tomcat下的webapps文件夹下了,主页 面可以正常显示,但有两个问题: 用户登录或注册的时候总是提示:Connecting to 192.168.2.109……(linux server的ip): 查看Tomcat  log文件catalina.out里有一堆 [WARN][2014-07-09 21:28:58,706][org.hibernate

Cloning EBS from Linux 5 to Linux 6 Fails: "Error While Loading Shared Libraries: libclntsh.so.10.1

SYMPTOMS  During clone Oracle Applications R12 from Linux 5 to Linux 6 the following error occurs in the apps tier: perl adcfgclone.pl appsTier 73% completed RC-50004: Fatal: Error occurred in ApplyAppsTier: StackTrace - java.lang.reflect.InvocationT

setjmp()、longjmp() Linux Exception Handling/Error Handling、no-local goto

目录 1. 应用场景 2. Use Case Code Analysis 3. 和setjmp.longjmp有关的glibc and eglibc 2.5, 2.7, 2.13 - Buffer Overflow Vulnerability 1. 应用场景 非局部跳转通常被用于实现将程序控制流转移到错误处理模块中:或者是通过这种非正常的函数返回机制,返回到之前调用的函数中 1. setjmp.longjmp的典型用途是异常处理机制的实现:利用longjmp恢复程序或线程的状态,甚至可以跳过栈中

Linux重启mysql Error getting authority: Error initializing authority: Could not connect: Resource temporarily unavailable (g-io-error-quark, 27)

问题: Linux下重启mysql: systemctl restart mysqld 出现以下错误: Error getting authority: Error initializing authority: Could not connect: Resource temporarily unavailable (g-io-error-quark, 27) 解决方法: wget https://copr.fedorainfracloud.org/coprs/jsynacek/systemd-

linux install nginx error

1 2 3 4 5 6 7 8 9 10 11 [[email protected] nginx-1.2.9]$ make make -f objs/Makefile make[1]: Entering directory `/home/mahao01/soft/nginx-1.2.9' cd /home/mahao01/local/pcre \ && if [ -f Makefile ]; then make distclean; fi \ && CC="gcc

Linux 安装软件Error

yum安装遇见的问题 ================================================================= 1.yum install  python-devel 时出现下面的问题: Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 解决办法: [[email protected] /]# vim /etc/yum.re

Linux apt操作命令

apt-cache 该命令用于在apt的软件包缓存中搜索软件.简单来说,就是用于搜索软件包,收集软件包信息并用于搜索哪些可以在Ubuntu或Debian上安装的软件. $apt-cache search package 搜索软件包 $apt-cache show package  获取包的相关信息,如说明.大小.版本等 apt-get 该命令是操作资源部管理的命令. $sudo apt-get install package 安装包 $sudo apt-get install package -