How can I install Google Dart in my Ubuntu? Is it pre-installed with Ubuntu or have to install manually ?
Asked
Active
Viewed 6,016 times
3 Answers
9
To install google dart in Ubuntu , open your terminal and type as
sudo apt-add-repository ppa:hachre/dart
sudo apt-get update
sudo apt-get install darteditor dartsdk dartium
-
1s-dayal-shri http://askubuntu.com/questions/131982/i-cant-add-ppa-repositories – Raja G Nov 15 '13 at 08:31
-
E: The repository 'http://ppa.launchpad.net/hachre/dart/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. – softmarshmallow Jul 23 '20 at 03:00
2
You can also follow official installation guide for Linux from Dart docs:
Setting up Dart repository
$ sudo apt-get update
$ sudo apt-get install apt-transport-https
$ sudo sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
$ sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
Installing Dart SDK using apt-get
:
$ sudo apt-get update
$ sudo apt-get install dart
Exporting SDK path (you can append following line at the end of your .bashrc
file):
export PATH="$PATH:/usr/lib/dart/bin"

devaerial
- 131
0
The Google Dart is available as part of Ubuntu Make:
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install umake
After that just run the Dart installer as your user (don't use sudo in this case):
umake dart
It will prompt you where to install Dart, and then download it automatically and install it.

Jorge Castro
- 71,754