DebugAH

How to Solve Your Programmer Error

Skip to content
  • Home
  • Linux
  • JAVA
  • Python
  • Javasript
  • MYSQL
  • Windows
  • Error

XXXXXsh: 1: Syntax error: “(” unexpected: shell [How to Solve]

Cause: compatibility issue, because Linux points sh to dash by default instead of bash

Solution:

Execute dpkg reconfigure dash under root and select No

┌──(root💀Liruilong)-[/mnt/c/Users/lenovo]
└─# dpkg-reconfigure dash

Similar Posts:

  • How to Solve Syntax error: Bad for loop variable (ubuntu)
  • [Solved] Dpkg: error: dpkg status database is locked by another process
  • [Solved] E: dpkg was interrupted, you must manually run ‘dpkg –configure -a’ to correct the probl…
  • Could not open lock file/var/lib/dpkg/lock [How to Solve]
  • Solve the problem that SQL Server blocks the state’openrowset/opendatasourc of component ‘ad hoc distributed queries’
  • Ubuntu 16.04 troubleshooting MySQL error [How to Solve]
  • [Solved] dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  • ubuntu Resource temporarily unavailable (Could …
  • Linux Error: dpkg: error processing package XXX (–configure)

This entry was posted in Linux and tagged XXXXXsh: 1: Syntax error: "(" unexpected shell on February 17, 2022 by Robins.

Post navigation

← Linux Error: dpkg: error processing package XXX (–configure) [Solved] ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ →

Recent Posts

  • [Solved] must appear in the GROUP BY clause or be used in an aggregate function
  • [Solved] Shell Error: syntax error: invalid arithmetic operator (error token is “
  • [Solved] FATAL ERROR: wasm code commit Allocation failed – process out of memory
  • [Solved] Mac Error: ERROR launching ‘JD-GUI’
  • [Solved] passwd: Authentication token manipulation error
  • [Solved] xtrabackup: error: xb_load_tablespaces() failed with error code 57
  • [Solved] Azure Function Enable Managed Identity and Powershell Funciton Report Error: ERROR: ManagedIdentityCredential authentication failed
  • [Solved] Application_Error not firing when customerrors = “On”
  • [Solved] MAVEN-COMPILER-PLUGIN Compile Error: FATAL ERROR: UNABLE TO FIND PACKAGE JAVA.LANG IN CLASSPATH OR BOOTCLASSPATH
  • [Solved] Json.Net Error: Error getting value from ‘ScopeId’ on ‘System.Net.IPAddress’

Tags

  • )
  • android
  • android studio
  • CentOS
  • centos7
  • chrome
  • DebugAH
  • django
  • docker
  • eclipse
  • git
  • github
  • go
  • hadoop
  • Hive
  • IDEA
  • ios
  • java
  • jenkins
  • Linux
  • Mac
  • maven
  • MyBatis
  • mysql
  • nginx
  • No module named XXX error
  • npm
  • Oracle
  • php
  • pip
  • pycharm
  • Python
  • Python TypeError
  • redis
  • shell
  • spring
  • springBoot
  • ssh
  • SVN
  • tensorflow
  • tomcat
  • ubuntu
  • vue
  • Windows
  • Yum
Proudly powered by WordPress