-
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            Heng-Zhou
          
      
      
        Feb 11, 2024 
      
    
    Replies: 1 comment
-
| Solved myself. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        Heng-Zhou
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    

Solved myself.
The order of namespaces matters. If using command
nsenter --preserve-credentials --user --mount --pid -t 2331224, I can enter the namespaces without error, and see thesystemd --unit=basic.targetas PID=1.