input: Write a function that installs a given software, using Bash scripting. Provide the function with the software name and version as input parameters. If the installation is successful, return a success message; otherwise, return an error message.
  assert install_software("Python", "3.8.5")=="Successfully installed Python 3.8.5"
  assert install_software("Java", "11")=="Successfully installed Java 11"
  assert install_software("NotExistingSoftware", "1.0")== "Error: Software NotExistingSoftware v1.0 not found"
  assert install_software("Python", "3.9.0")=="Successfully installed Python 3.9.0"
  assert install_software("Java", "8")=="Successfully installed Java 8"
output: def install_software(software, version):
      try:
          import subprocess
          result = subprocess.run(["bash", "-c", f"sudo apt-get install -y {software}={version}"], capture_output=True, text=True)
          if result.returncode == 0:
              return f"Successfully installed {software} {version}"
          else:
              return f"Error: Software {software} v{version} not found"
      except Exception as e:
          return f"Error: {e}"