You might face difficulties running the Pepper emulator on Android Studio under Ubuntu 18.04. Here is how to solve them. Tested OK with API 5.
You need to first install this:
sudo apt install qemu-kvm
To check the ownership of /dev/kvm use:
ls -al /dev/kvm
The user was root, the group kvm. To check which users are in the kvm group, use
grep kvm /etc/group
This returned
kvm:x:some_number:
on my system: as there is nothing rightwards of the final " : ", there are no users in the kvm group.
To add the user yourname to the kvm group, you could use
sudo adduser yourname kvm
which adds the user to the group, and check once again with grep kvm /etc/group.
You might want to log out and back in (or restart) for the permissions to take effect.
Add the repo and install the missing lib:
echo "deb http://security.ubuntu.com/ubuntu xenial-security main" | sudo tee --append /etc/apt/sources.list sudo apt-get update sudo apt-get install libicu55
Navigate to your lib folder:
cd /home/$USER/.local/share/Softbank Robotics/RobotSDK/API 5/tools/lib
Back up the old libraries:
mv libz.so.1 libz.so.1.bak mv libicui18n.so.55 libicui18n.so.55.bak
And relink the system's ones:
ln -s /usr/lib/x86_64-linux-gnu/libz.so libz.so.1 ln -s /usr/lib/x86_64-linux-gnu/libicui18n.so.55 libicui18n.so.55
You should now be able to start the Pepper emulator!