Experience case of script upgrade error due to rpm dependency package at a certain site

2025-03-27 15:42:35 Published
  • 0 Followed
  • 0Collected ,2Browsed

Problem Description

When upgrading the rpm package according to the chassis deployment guide, the system prompts that the command was not found

Process Analysis

In Windows systems, the line feed character in documents is usually \r, but it cannot be identified in Linux, causing errors during script execution

Solution

Use the command sed -i s/\r// test.sh (where test.sh is the name of the upgrade script) to replace the corresponding \r in the upgrade script, then execute the upgrade.sh script again. The rpm package can be upgraded normally.

Please rate this case:   
0 Comments

No Comments

Add Comments: