救命!我不知道如何安装JDK!
[/usr/lib/jvm]$ su -c "yum install java-1.7.0-openjdk-devel"
Loaded plugins: langpacks, presto, refresh-packagekit
No package java-1.7.0-openjdk-devel available.
Error: Nothing to do
[/usr/lib/jvm]$ su -c "yum install java-1.7.0-openjdk"
Loaded plugins: langpacks, presto, refresh-packagekit
No package java-1.7.0-openjdk available.
Error: Nothing to do
[/usr/lib/jvm]$ su -c "yum install java-1.6.0-openjdk-devel"
Loaded plugins: langpacks, presto, refresh-packagekit
No package java-1.6.0-openjdk-devel available.
Error: Nothing to do
[/usr/lib/jvm]$ su -c "yum install java-1.6.0-openjdk"
Loaded plugins: langpacks, presto, refresh-packagekit
No package java-1.6.0-openjdk available.
Error: Nothing to do
Run Code Online (Sandbox Code Playgroud)
在这里,我手动下载了一些rpm,这是从oracle网站下载的最后一个:
[~]$ rpm …Run Code Online (Sandbox Code Playgroud) 我正在按照这里描述的方式在 Red Hat 6.1上安装PostgreSQL 9.1当我启动yum install postgresql91-server时,它会抱怨libssl.so.10和libcrypto.so.10丢失了,而我已经验证了他们'在/ usr/lib64 /下可用
这是我得到的错误:
postgresql91服务器,9.1.12-1PGDG.rhel6.x86_64
- >完成的依赖性解决方案
错误:包:postgresql91-libs-9.1.12-1PGDG.rhel6.x86_64(pgdg91)
Run Code Online (Sandbox Code Playgroud)Requires: libcrypto.so.10(libcrypto.so.10)(64bit)错误:包:postgresql91-server-9.1.12-1PGDG.rhel6.x86_64(pgdg91)
Run Code Online (Sandbox Code Playgroud)Requires: libcrypto.so.10(libcrypto.so.10)(64bit)错误:包:postgresql91-libs-9.1.12-1PGDG.rhel6.x86_64(pgdg91)
Run Code Online (Sandbox Code Playgroud)Requires: libssl.so.10(libssl.so.10)(64bit)错误:包:postgresql91-server-9.1.12-1PGDG.rhel6.x86_64(pgdg91)
Run Code Online (Sandbox Code Playgroud)Requires: libssl.so.10(libssl.so.10)(64bit)错误:包:postgresql91-9.1.12-1PGDG.rhel6.x86_64(pgdg91)
Run Code Online (Sandbox Code Playgroud)Requires: libssl.so.10(libssl.so.10)(64bit)您可以尝试使用--skip-broken解决问题您可以尝试运行:rpm -Va --nofiles --nodigest
我错过了什么?
上周五早上,我在我的 CentOS 笔记本电脑上尝试了“yum update”,它报告了以下内容:
Loaded plugins: fastestmirror, langpacks, verify
Loading mirror speeds from cached hostfile
* base: repo1.dal.innoscale.net
* epel: fedora-epel.mirror.lstn.net
* extras: mirror.unl.edu
* nux-dextop: mirror.li.nux.ro
* rpmfusion-free-updates: mirror.us.leaseweb.net
* updates: mirror.spro.net
Resolving Dependencies
--> Running transaction check
---> Package nss-softokn-freebl.i686 0:3.16.2.3-13.el7_1 will be updated
---> Package nss-softokn-freebl.i686 0:3.16.2.3-14.2.el7_2 will be an update
---> Package python-ecdsa.noarch 0:0.11-3.el7.centos will be obsoleted
---> Package python2-ecdsa.noarch 0:0.13-4.el7 will be obsoleting
---> Package tzdata.noarch 0:2016c-1.el7 will be updated
---> Package tzdata.noarch 0:2016d-1.el7 will …Run Code Online (Sandbox Code Playgroud) 我想从我的存储库安装所有软件包,我无法重复此命令:
yum repo-pkgs reponame install
Run Code Online (Sandbox Code Playgroud)
在 Ansible 剧本中。
我找到的所有内容:示例如何安装一个软件包或已知软件包列表:
- name: upgrade all packages
yum: name=* state=latest
Run Code Online (Sandbox Code Playgroud)
不起作用:写入所有已安装的软件包 - 但它不正确
我正在尝试在 amazon-linux 实例上安装 rails,但我不断收到此问题中报告的相同错误:
[ec2-user@xxx.xxx ~]$ sudo gem install rails --no-ri --no-rdoc
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
current directory: /usr/local/share/ruby/gems/2.3/gems/nokogiri-1.7.2/ext/nokogiri
/usr/bin/ruby2.3 -r ./siteconf20170529-26560-9zyb13.rb extconf.rb
Run Code Online (Sandbox Code Playgroud)
请注意,我手动将 ruby 升级到 2.3
[ec2-user@xxx.xxx ~]$ ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux-gnu]
Run Code Online (Sandbox Code Playgroud)
我也尝试过其他版本的 rails(我想安装最新的 5.1.1),但也没有运气
sudo gem install rails --version 5.1.1 --no-ri --no-rdoc
sudo gem install rails --version 5.0.0 --no-ri --no-rdoc
sudo gem install rails --version 4.2.8 --no-ri …Run Code Online (Sandbox Code Playgroud) 我试图找到一种google chrome在 CentOS 6.9 中安装的方法。
有人说谷歌已经停止支持,其他人有不同的方法来做。
但是他们的解决方案对我没有帮助。
有谁知道如何做到这一点?
当我尝试使用“yum”命令更新时发生以下错误。没有任何互联网连接问题。我只是试图从给定 Red-Hat 文章的错误消息中获取解决方案。但红帽知识库仅支持活跃订阅者。
[cloudera@quickstart /]$ sudo yum update
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Update Process
Loading mirror speeds from cached hostfile
epel/metalink | 3.9 kB 00:00
* base: ftp.iitm.ac.in
* epel: mirror2.totbb.net
* extras: ftp.iitm.ac.in
* updates: ftp.iitm.ac.in
* webtatic: sp.repo.webtatic.com
http://install.linux.ncsu.edu/pub/yum/itecs/public/chromium/6/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
If above article doesn't help to …Run Code Online (Sandbox Code Playgroud) 我需要在linux机器上安装一些软件包.由于各种原因,一些(少数)软件包可能会丢失(操作系统版本,基本上)
- vars:
pkgs:
- there_1
- not_there_1
- there_2
...
Run Code Online (Sandbox Code Playgroud)
但我也希望从一本剧本中管理它们.所以我不能把它们全部集中在一起
yum: state=latest name="{{pkgs}}"
Run Code Online (Sandbox Code Playgroud)
因为丢失的包会弄乱事务,所以什么也没有安装.
然而,明显(和缓慢)一个一个安装也失败了,因为第一个丢失的包将整个循环从水中吹出,因此:
- name Packages after not_there_1 are not installed
yum: state=latest name="{{item}}"
ignore_errors: yes
with_items: "{{ pkgs }}"
Run Code Online (Sandbox Code Playgroud)
有没有办法忽略循环中的错误,以便所有项目都有机会?(即安装错误表现为continue循环中的一个)
我目前正在运行 Redhat 服务器:
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.10 (Santiago)
Release: 6.10
Codename: Santiago
Run Code Online (Sandbox Code Playgroud)
并且之前安装了 MySQL 5.1 版。我需要的MySQL升级到版本> 5.6所以首先我出口的所有数据库有:mysqldump [options] > dump.sql。我下载了 rpm:mysql80-community-release-el6-2.noarch.rpm并运行:
sudo rpm -Uvh mysql80-community-release-el6-2.noarch.rpm
sudo yum -y update mysql*
rpm -qa | grep mysql
mysql-community-libs-8.0.15-1.el6.x86_64
mysql80-community-release-el6-2.noarch
mysql-community-server-8.0.15-1.el6.x86_64
mysql-community-common-8.0.15-1.el6.x86_64
mysql-community-libs-compat-8.0.15-1.el6.x86_64
mysql-community-client-8.0.15-1.el6.x86_64
Run Code Online (Sandbox Code Playgroud)
现在,当我尝试启动 mysql 时出现了问题:sudo service mysqld start
显然,它不会启动,以下是日志:
2019-04-23T22:04:09.953724Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.15) starting as process 16303
2019-04-23T22:04:10.072176Z 1 [ERROR] [MY-013090] [InnoDB] Unsupported redo log …Run Code Online (Sandbox Code Playgroud) 在 centos (7.6) 上,我有一个脚本来使用 yum 工具和 remi-repo 部署一组 php 依赖项。我需要在 redhat (7.9) 上迁移此安装集。在这个发行版上,我在安装 php-mbdstring 模块期间遇到了这个问题。
缺少lib libonig.so.105()(64 位)。我没有找到任何可以明确解决此依赖关系的内容。我尝试安装 oniguruma( 和 -devel) 但 lib (/usr/lib64/libonig.so.5) 版本与依赖项要求不匹配。这里是 yum install 命令的输出。
---> Package php-mbstring.x86_64 0:7.2.34-1.el7.remi will be installed
Checking deps for php-mbstring.x86_64 0:7.2.34-1.el7.remi - u
looking for ('php-common(x86-64)', 'EQ', ('0', '7.2.34', '1.el7.remi')) as a requirement of php-mbstring.x86_64 0:7.2.34-1.el7.remi - u
looking for ('libc.so.6(GLIBC_2.14)(64bit)', None, (None, None, None)) as a requirement of php-mbstring.x86_64 0:7.2.34-1.el7.remi - u
looking for ('rtld(GNU_HASH)', None, (None, None, None)) …Run Code Online (Sandbox Code Playgroud)