tencent cloud

Cloud Virtual Machine

Release Notes and Announcements
Release Notes
Public Image Release Notes
Official End of Support Plan for the Operating System
Announcements
Product Introduction
CVM Overview
Strengths
Basic Concepts
Regions and Zones
Tutorial
Service Regions and Service Providers
Billing
Billing Overview
Billing Modes
Billing Items
Billing Mode Conversion Overview
Purchasing Instances
Configuration Adjustment Billing Guide
Overdue Payments
Getting Started
Purchasing a Customized Linux Instance
Purchasing a Customized Windows Instance
User Guide
Operation Guide Overview
Use Limits
Instances
Spot Instances
Reserved Instances
Images
Storage
Backup and Restoration
Network
Security
Passwords/Keys
Monitoring and Alarms
Ops Management
Convenience Features
Migrating a Server
Online Migration
Migration Consultation
Troubleshooting
CVM Login Failures
Windows Instance Login Failures
Linux Instance Login Failures
Other Login Failures
Instance Running Failures
Linux Instance Memory Failures
Network Failures
Use Cases
Suggestions on CVM Model Selection
Environment Building
Website Building
Application Building
Visual GUI Building
Uploading Local Files to CVM
Network Performance Test
Other Practical Tutorials
API Documentation
History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
Security and Compliance
CAM
Network
FAQs
Regions and Zones
Billing
Instances
Storage
Images
Server Migration
Network
Security
Operating Systems
Ops and Monitoring
CAM
NTP Service
Scenarios
Agreements
CVM Service Level Agreements
Red Hat Enterprise Linux Image Service Agreement
Public IP Service Level Agreement
Glossary

Missing System bin or lib Soft Link

PDF
Focus Mode
Font Size
Last updated: 2024-01-06 17:32:18

Issue Description

During command execution or system startup, an error message that the command or lib was not found is reported.

Common Causes

The bin, sbin, lib, and lib64 of CentOS 7, CentOS 8, and Ubuntu 20 are soft links as follows:
lrwxrwxrwx 1 root root 7 Jun 19 2018 bin -> usr/bin
lrwxrwxrwx 1 root root 7 Jun 19 2018 lib -> usr/lib
lrwxrwxrwx 1 root root 9 Jun 19 2018 lib64 -> usr/lib64
lrwxrwxrwx 1 root root 8 Jun 19 2018 sbin -> usr/sbin
If a soft link is deleted, an error will be reported during command execution or system startup.

Solution

Check and create the required soft links as instructed in Steps.

Steps

1. Enter the rescue mode.
2. Run commands such as mount and chroot. When running the chroot command:
If there is an error, run cd /mnt/vm1.
Otherwise, run cd /.
3. Run the following command to check whether the corresponding soft link exists.
ls -al / | grep -E "lib|bin"
If yes, submit a ticket for assistance.
If no, run the following commands as needed to create corresponding soft links.
ln -s usr/lib64 lib64
ln -s usr/sbin sbin
ln -s usr/bin bin
ln -s usr/lib lib
4. Run the following command to check the soft links.
chroot /mnt/vm1 /bin/bash
If no error is reported, the soft links have been successfully repaired.
5. Exit rescue mode and start the system.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback