我对Linux有点新,在Windows上的Virtualbox上testing各种LAMP设置。 目前我有一个CentOS 7虚拟机,我正在尝试安装MariaDB。 我在这里按照说明: http : //www.tecmint.com/install-lamp-in-centos-7 我跑了 # yum install mariadb-server mariadb 根据terminal输出安装成功,但运行时: # systemctl start mariadb 我明白了 Failed to start mariadb.service: Unit not found. 我花了几个小时使用谷歌search这个,但似乎没有解决我的问题,包括( mariadb服务器安装后没有mysqld或mysql.server )和许多其他职位。 任何帮助是极大的赞赏。 更新01 我卸载mariadb: [root@centos7 admin]# yum remove mysql Loaded plugins: fastestmirror Resolving Dependencies –> Running transaction check —> Package MariaDB-client.x86_64 0:10.0.30-1.el7.centos will be erased –> Processing […]
我有一个CentOS 6系统,出于安全考虑,它是通风的。 它可能从来没有连接到互联网,如果有,它还没有被更新很长一段时间。 我想将所有.rpm软件包放在一个驱动器上,以便在不查询networking的情况下离线安装它们。 然而,我在testing虚拟机上遇到的问题是,即使指定了本地path, yum仍然挂起并尝试从联机存储库进行更新。 另外,是否有一种方法可以轻松获取该包使用yum-utils / yumdownloader 所有依赖关系 ? 目前,它仍然遗漏了一些依赖(例如,当我拉动gcc-c ++ rpm时,它将抓取cpp和gcc但不会拉动cloog-ppl , mpfr或ppl ) 我已经尝试了这样的解决scheme ,但我不能认为已经有一个依赖树,或者yum将是最新的。 在Docker镜像的新安装中,我第一次尝试运行yum(禁用了internet)时,出现Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
当从本地文件目录安装rpm包时,它首次运行良好 sudo yum install packages/* -y –disablerepo=* 当同样的东西第二次作为自动化脚本的一部分运行时,它会抛出一个错误(退出代码1) packages/package.rpm: does not update installed package. Error: Nothing to do 我可以运行更新(退出代码0) sudo yum update packages/* -y –disablerepo=* … No packages marked for update 与此问题是,更新将跳过未安装的软件包。 如果在这里有任何真正的问题,我不想忽略退出代码,只想install-or-update 。 有没有一个rpm -i等价物达到这个目的? 请注意,这是在一组rpm包上完成的,这些包可能在任何时候都包含额外的包。 我想一个select是在shell脚本中迭代它们,并检查它们是否安装,但是依赖性parsing可能会变得相当痛苦,听起来像重新发明自行车。 更新: rpm –install会根据失败的软件包的数量select退出代码。 https://www.redhat.com/archives/rpm-list/2005-July/msg00071.html rpm –freshen会忽略以前没有安装的任何rpm,而根本没有输出。
我运行了一些CentOS服务器。 我最近偶尔做yum update但是在less数服务器上失败了。 在大多数情况下,我可以通过这样做前进: # yum clean all # rm -f /var/lib/rpm/__db* # rpm –rebuilddb # yum update 但是,在一台服务器上, yum clean命令挂起。 我试过跑步了: # yum -v –noplugins clean all 但我根本没有输出。 Yum只是挂起来,如果我放了它,不用任何cpu,就停下来几个小时。 干 # strace -f yum -v –noplugins clean all 产生了相当多的输出,但随后停止: … stat64("/var/lib/rpm/__db.003", {st_mode=S_IFREG|0644, st_size=450560, …}) = 0 open("/var/lib/rpm/__db.003", O_RDWR|O_LARGEFILE) = 4 fcntl64(4, F_SETFD, FD_CLOEXEC) = […]
每次尝试在四台不同的服务器上更新(CentOS 6)时,我都会遇到这个错误。 它只发生在这个包里。 在研究了这个问题后,我一直没有find任何有用的信息。 人们对此有非常类似的问题,但不是这个问题。 任何人都可以告诉我如何解决这个问题? [user@machine ~]$ sudo yum update Loaded plugins: dellsysid, fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirror.thelinuxfix.com * extras: mirrors.gigenet.com * rpmforge: thammuz.tchpc.tcd.ie * updates: mirror.clarkson.edu Setting up Update Process Resolving Dependencies –> Running transaction check —> Package srvadmin-omcommon.x86_64 0:7.2.0-4.450.1.el6 will be updated —> Package srvadmin-omcommon.x86_64 […]
当试图安装perl-Time-HiRes时,我得到以下内容: host1:user1 > sudo yum install perl-Time-HiRes Loaded plugins: product-id, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Setting up Install Process Resolving Dependencies –> Running transaction check —> Package perl-Time-HiRes.x86_64 4:1.9721-119.el6_1.1 will be installed –> Processing Dependency: perl = 4:5.10.1-119.el6_1.1 for package: 4:perl-Time-HiRes-1.9721-119.el6_1.1.x86_64 –> […]
互联网上有很多关于yum更新后出现的“ Running transaction test ”通知的问题和答案。 这些问题通常涉及如果卡住了怎么办。 我的问题只是要知道:在这次交易testing中发生了什么? 有问题的交易是什么? 正在做什么样的testing?
我试图更新我的PHP版本,使用webtatic回购 。 我已经在家里的机器上运行的一个testing虚拟机服务器上成功地完成了(使用链接中的确切步骤),但是当我尝试在我的活动服务器上执行相同的操作时,会出现一个错误,提示no package php56w available 。 在两台服务器上运行yum repolist ,我的testing服务器在webtatic的状态栏下显示285 ,但在我的实时服务器上显示43+242 。 我所能想到的是在我的testing服务器上,所有285个软件包都可用,但在我的活动服务器上只有43个软件包可用。 我正确地认为? 如果是这样,我怎样才能使其他软件包也可用? 两台服务器都运行CentOS 6.5(最终)
我们在过去分发的RPM的%preun脚本中有错误。 这已得到纠正,但现在升级到较新的版本失败,因为以前的版本并没有彻底清除: Error in PREUN scriptlet in rpm package perl-perfSONAR-OPPD-MP-server /var/tmp/rpm-tmp.veW9Jb: line 5: syntax error: unexpected end of file error: %preun(perl-perfSONAR-OPPD-MP-server-3.4-1.pSPS.noarch) scriptlet failed, exit status 2 这可以通过手动卸载过时的软件包而不执行%preun部分然后重新安装新的软件包来解决: rpm -e –nopreun perl-perfSONAR-OPPD-MP-server-3.4-1.pSPS.noarch rpm -i –replacepkgs perl-perfSONAR-OPPD-MP-server-3.5-0.0.a1.pSPS.noarch.rpm 这是一个需要系统pipe理员干预的手动过程,我们希望避免。 是否有人知道通过yum做同样的方法,以便以前的软件包被删除的新的安装没有错误,所有只有一个yum命令或通过百胜自动升级? 如果有问题,我们正在使用CentOS 6。
我已经安装了可以使自动化部署我的系统,我需要一些额外的模块来处理它。 我在可靠的github上下载了模块yumrepo.py,并将其添加到我的库目录中。 但是当我运行,它显示错误ERROR: yumrepo is not a legal parameter of an Ansible Play 。 这是我的configuration文件ansible.cfg。 inventory = /etc/ansible/hosts library = /etc/ansible/module/ remote_tmp = $HOME/.ansible/tmp 和我的剧本 — – name: Add multiple repositories into the same file (1/2) yumrepo: name: epel description: EPEL YUM repo file: external_repos baseurl: http://download.fedoraproject.org/pub/epel/$releasever/$basearch/ gpgcheck: no 希望有人帮助我。 非常感谢