Huawei E220 not working with Ubuntu

There is a bug in the network-manager so that the Huawei E220 HDSPA modem cannot connect to the internet (Bug). For me the following workaround fixed the problem:

  • Unplug the modem
  • plug the modem
  • before trying to connect to the internet with the network-manger, run the following command:

  • Connect to the internet with the network-manager