Android-studio doesn't launch - android-studio

I've been following these instructions to install Android-studio.
With exception I used
sudo snap install android-studio --classic
instead of
sudo snap install android-studio
And now when I try to launch it
android-studio
I get the next message
/var not root-owned 1000:1000
What should I do? Did I messed something up? What can I do to launch it?
P.S. Trying to launch it from Ubuntu Software does nothing.

Related

How to install flutter on Linux Mint

I'm new to linux mint and I don't know how to install flutter.
"https://docs.flutter.dev/get-started/install/linux"
I couldn't understand the things in the link here, I would appreciate it if you could help.
Let me explain in simple steps :
first install "snapd" in your linux machine using command
Steps to install snapd-
sudo mv /etc/apt/preferences.d/nosnap.pref ~/Documents/nosnap.backup
sudo apt update
sudo apt install snapd
Now,Install flutter using snap-
1- sudo snap install flutter --classic
flutter will get installed after this (stablle internet connection needed)
To verify your flutter, run following command
flutter doctor
Note: You will need to install Android studio to run flutter on android emulator.
Hope it will work!!
#Install Flutter manually
Download the following installation bundle to get the latest stable release of the Flutter SDK From :
enter link description here
Extract the File > Move to the desire location .
then , Just Update The Path Parmanently .Shown in the Snaps Bellow :

How to Fix Could not get lock /var/lib/dpkg/lock Error on Ubuntu?

I have recently started learning linux commands and got this error while installing any application on Ubuntu.How to resolve this?
How did you try to install app?
Did you use apt?
If so, maybe some other apt process is running in the background or you have opened Synaptic package manager.
Run sudo killall apt apt-get and please try again
if another package is in progress for installation/removal then in that case you are going to install/remove second one package you will face Unable to acquire the dpkg frontend lock error

Getting an error by making VBox full screen on Windows?

Despite installation of the package, getting same error again.
Error : kernel module failed
Kernel headers not found for target kernel4.19.0-8-amd64. Please install them and execute
Host: Win 10
VBox: Debian 10
This is typical issue, actually not an issue simply missing headers. Run following
commands
$ sudo apt install linux-headers-4.19.0-8-amd64
$ sudo apt install dkms
Then run guest script again
sudo sh VBoxLinuxAdditions.run
Finally reboot the machine
$ sudo reboot

Centos yum crashes and can't install anything

I have a dedicated server on centos. I want to install a software via a makefile, so I need the "make" package. I've tried to install the "make" package with "yum install make".
During the installing, it freezes for about 30 minutes so I killed the process.
Since then, I cannot install any package. I've tried reinstalling "make" (wich had never finished) and another package.
Yum seems to start but doesn't wirte anything and freezes there.
Is there a way to "restart" yum? Or a way to "repair" it?
What yum install says? Try to disable all plug-ins by setting enabled=0 in /etc/yum.conf and restart installing.

Error message when setting up ADT in Linux

I installed Ubuntu 11.10, installed GNOME 3 (replaced Unity), installed Eclipse from the Ubuntu Software Center, installed the android sdk and ADT.
Now when I start eclipse I get a message saying:
Failed to get ADB version : Cannot run program
/home/ayush/android-sdk/platform-tools/adb":java.io.IOException:error=2,
No such file or directory
What is causing this error and how do I fix it?
The command to install IA32 libraries on Ubuntu is:
apt-get install ia32-libs
sudo dpkg --add-architecture i386
sudo apt-get update
apt-get install ia32-libs
Before that please check your ubuntu version. if you are running with 64 bits, you need to install a linux emulator, IA32 bit I thinks. Verify on Google.
after that, your ADB can run easily on ubuntu.
I'm using Fedora 17 and I got the same error as the poster:
[2013-08-29 21:44:08 - adb] Unexpected exception 'Cannot run program
"/home/el/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb":
error=2, No such file or directory' while attempting to get adb version from
'/home/el/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb'
I know this works if you are using Fedora 17/18 (login as root)
yum install redhat-lsb.i686
And then restart the IDE and the errors no longer show.
I had the exact same error as you had, but on my Ubuntu 12.04 LTS version.
The following avoided that error for me:
1) Install 'adb' and 'fastboot' provided by the following third-party PPA.
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot
2) Replace the copy of 'adb' and 'fastboot' provided by the official Android SDK with those installed from the above step:
cp /usr/bin/adb <path-to-your-adt-sdk-package>/sdk/platform-tools/adb
cp /usr/bin/fastboot <path-to-your-adt-sdk-package>/sdk/platform-tools/fastboot
3) Restart(re-execute) your eclipse binary.
Full credits:
http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html
They have the binaries for 12.10, 11.10 and 11.04 as well.
Don't try to install ia32-libs, this library has been obsoleted.
So, you should install these libraries:
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
Cheers

Resources