I am running some code that works fine on my windows system using the .remove method. On Ubuntu 16.04 I get the following errror:

error: ‘class String’ has no member named ‘remove’

To see if it was installation, I uninstalled arduino with

sudo apt-get purge arduino arduino-core


sudo apt-get update
sudo apt-get upgrade

sudo apt-get install arduino arduino-core

and the issue remains. I have seen some people say opening arduino through the terminal (from this), although that does not fix it.

Arduino version 2:1.0.5+dfsg2-4

Any help is appreciated.

  • Why are you running 1.0.5? Feb 9, 2018 at 17:03
  • @IgnacioVazquez-Abrams I didn't realize that, for some reason I thought it was 2. Ubuntu is installing 1.0.5 even after the updated package list, is arduino not maintained on the repo? Or am I missing something obvious? Feb 9, 2018 at 17:09
  • You'll probably have to download the tarball from the Arduino site, but don't quote me on that. Feb 9, 2018 at 17:10

1 Answer 1


The remove method was added to the String class in 1.0.6.

Installing Arduino IDE from the Ubuntu repository gets you a really old package (1.0.5).

You should download and install the newest version from the official Arduino page.

  • Yep, that's what I always do. Download the newest version and bang it into some place like your home directory.
    – Nick Gammon
    Feb 9, 2018 at 22:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.