Linux提示crontab command not found的解決方法
# 檢視定時任務列表 crontab -l
報錯提示:
- bash: crontab: command not found
# 安裝之前,先刪除 yum remove cronie # 安裝cronie yum -y install cronie
安裝依舊報錯:
Total download size: 92 k Installed size: 215 k Downloading packages:Delta RPMs disabled because /usr/bin/applydeltarpm not installed.cronie-1.4.11-23.el7.x86_64.rpm | 92 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : cronie-1.4.11-23.el7.x86_64 1/1 Error unpacking rpm package cronie-1.4.11-23.el7.x86_64 error: unpacking of archive failed on file /etc/cron.d/0hourly;60a90564: cpio: open Verifying : cronie-1.4.11-23.el7.x86_64 1/1 Failed: cronie.x86_64 0:1.4.11-23.el7
報錯提示:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
發現需要安裝deltarpm
yum -y install deltarpm
安裝deltarpm成功之後繼續安裝 yum -y install cronie
新的報錯提示:
Error unpacking rpm package cronie-1.4.11-23.el7.x86_64
error: unpacking of archive failed on file /etc/cron.d/0hourly;60a90661: cpio: open
解決方法【去除特殊屬性-i -a】:
[root@iZuf6bm7y86rsciyk4lvriZ ~]# find / -name "crontab"/var/lib/docker/overlay2/ef655c7ec12a300ff857c07225d0556025f494da1755aa038c88b86fbd876ccf/diff/usr/bin/crontab/etc/crontab[root@iZuf6bm7y86rsciyk4lvriZ ~]# lsattr /etc/crontab----ia-------e-- /etc/crontab[root@iZuf6bm7y86rsciyk4lvriZ ~]# chattr -i -a /etc/crontab[root@iZuf6bm7y86rsciyk4lvriZ ~]# lsattr /etc/crontab
去除特殊屬性
chattr -i -a /etc/crontab
然後重新安裝:yum -y install cronie
檢視Linux定時任務:
#檢視定時任務 crontab -l
原文地址: https://www.yundashi168.com/278.html
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69988117/viewspace-2773517/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- bash: lspci: command not found解決方法
- 解決bash: mysql: command not found的問題MySql
- -bash: XXX: command not found解決辦法
- Linux:-bash: tree: command not foundLinux
- Linux:-bash: unzip: command not foundLinux
- Mac終端出現 brew command not found 解決Mac
- zabbix_get :command not found 解決辦法
- PHP-fpm Linux 環境使用 exec 函式呼叫 FFmpeg,報錯 FFmpeg: command not found 的解決方法PHPLinux函式
- 【Linux】git note -v command not foundLinuxGit
- “command-not-found has crashed” 解決辦法 (*unsolved)
- 解決shell指令碼錯誤$’r’ command not found指令碼
- 【linux報錯】-bash: xhost: command not foundLinux
- -bash: id: command not found -bash: tty: command not found
- 解決 biolinux-conda command not found 2018-05-04Linux
- CentOS 7 命令 lsb_release: command not found 解決方案CentOS
- 解決Vue中”This dependency was not found”的方法Vue
- nodemon: command not found
- pip: command not found
- Linux yum提示Loaded plugins錯誤的解決方法LinuxPlugin
- zsh:command not found: xxx
- mac mysql: command not foundMacMySql
- JAVA IPMI Command time out 解決方法Java
- 阿里雲伺服器Centos映象解決方案apt-get: command not found阿里伺服器CentOSapt-get
- Mac -bash: mysql: command not foundMacMySql
- CertPathValidatorException: Trust anchor for certification path not found解決方法ExceptionRust
- VScode git無法使用,Error: command 'git.push' not found 原始碼管理無法使用的問題及解決方法VSCodeGitError原始碼
- sudo: apt-get: command not foundapt-get
- centos 7 -bash: mysql: command not foundCentOSMySql
- libc.so.6: version 'GLIBC_2.14' not found報錯提示的解決方案
- 華納雲:linux中crontab不起作用怎麼解決Linux
- mysql中出現Unit mysql.service could not be found 的解決方法MySql
- Linux下crontab命令的用法:sudo crontab -lLinux
- dedecms提示500錯誤解決方法
- 修改 Linux 預設 Shell 用 chsh -s /bin/zsh 命令不生效,提示 chsh: Shell not changed. 或 chsh: command not found 怎麼辦Linux
- linux中crontab計劃任務怎麼刪除?linux中crontab計劃任務的刪除方法Linux
- python virtualenv報錯-bash: virtualenv: command not foundPython
- bash: ssh-copy-id: command not found...
- zsh: command not found: bee bee工具安裝