akhilnarang / scripts Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
On running android_build_env.sh script it gave error. On checking deeply I found that these three packages lsb-core, python2.7, python-all-dev weren't installing please fix it.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
software-properties-common is already the newest version (0.99.35).
The following packages were automatically installed and are no longer required:
linux-headers-6.2.0-24 linux-headers-6.2.0-24-generic linux-image-6.2.0-24-generic
linux-modules-6.2.0-24-generic linux-modules-extra-6.2.0-24-generic
linux-modules-nvidia-525-6.2.0-24-generic linux-objects-nvidia-525-6.2.0-24-generic
linux-signatures-nvidia-6.2.0-24-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hit:1 https://cli.github.com/packages stable InRelease
Hit:2 https://linux.teamviewer.com/deb stable InRelease
Hit:3 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu lunar InRelease
Hit:5 http://security.ubuntu.com/ubuntu lunar-security InRelease
Hit:6 http://in.archive.ubuntu.com/ubuntu lunar-updates InRelease
Get:7 http://in.archive.ubuntu.com/ubuntu lunar-backports InRelease [99.8 kB]
Fetched 99.8 kB in 2s (57.5 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package lsb-core is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'lsb-core' has no installation candidate
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'lib32ncurses-dev' instead of 'lib32ncurses5-dev'
Note, selecting 'liblz4-tool' for regex '^liblz4-.'
Note, selecting 'liblz4-java' for regex '^liblz4-.'
Note, selecting 'liblz4-1a' for regex '^liblz4-.'
Note, selecting 'liblz4-dev' for regex '^liblz4-.'
Note, selecting 'liblz4-jni' for regex '^liblz4-.'
Note, selecting 'liblz4-1' for regex '^liblz4-.'
Note, selecting 'liblzma2' for regex '^liblzma.'
Note, selecting 'liblzma5' for regex '^liblzma.'
Note, selecting 'liblzma-dev' for regex '^liblzma.'
Note, selecting 'liblzma-doc' for regex '^liblzma.'
Note, selecting 'lzma-alone' for regex '^lzma.'
Note, selecting 'lzma-dev' for regex '^lzma.'
Note, selecting 'lzma' for regex '^lzma.*'
Note, selecting 'libncurses-dev' instead of 'ncurses-dev'
Package python-all-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Unable to locate package python2.7
E: Couldn't find any package by glob 'python2.7'
E: Package 'python-all-dev' has no installation candidate
Installing GitHub CLI
4+1 records in
4+1 records out
2270 bytes (2.3 kB, 2.2 KiB) copied, 0.326071 s, 7.0 kB/s
Hit:1 https://cli.github.com/packages stable InRelease
Hit:2 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 https://linux.teamviewer.com/deb stable InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu lunar InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu lunar-updates InRelease
Hit:6 http://security.ubuntu.com/ubuntu lunar-security InRelease
Get:7 http://in.archive.ubuntu.com/ubuntu lunar-backports InRelease [99.8 kB]
Fetched 99.8 kB in 1s (83.6 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gh is already the newest version (2.32.1).
The following packages were automatically installed and are no longer required:
linux-headers-6.2.0-24 linux-headers-6.2.0-24-generic linux-image-6.2.0-24-generic
linux-modules-6.2.0-24-generic linux-modules-extra-6.2.0-24-generic
linux-modules-nvidia-525-6.2.0-24-generic linux-objects-nvidia-525-6.2.0-24-generic
linux-signatures-nvidia-6.2.0-24-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Setting up udev rules for adb!
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 29968 100 29968 0 0 62822 0 --:--:-- --:--:-- --:--:-- 62957
Warning: Got more output options than URLs
Installing repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 45787 100 45787 0 0 90932 0 --:--:-- --:--:-- --:--:-- 90847
Warning: Got more output options than URLs
At Ubuntu 18.04, after doing android end setup.sh, I go back to the root dir of the scripts and found typing $bash build.sh gets you nothing, searching build.sh in the whole Ubuntu gets you nothing too, any solutions?
I ran the script on a fresh install of kubuntu 20.04.1 minimal, and curl doesn't seem to be installed.
script isn't installing repo correctly. this is directly from solus linux website and works. sorry i cant do a PR, not that savy yet
Installing the repo Tool
repo is a tool from Google to manage multiple git repositories. We’ll need to install it to download the Android source code.
mkdir ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
We now need to export ~/bin to our PATH so we can run repo from any directory. Paste the following into your ~/.bashrc file.
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
Run source ~/.bashrc for the changes to apply.
Debian 11 bullseye
Hi. I'm quite new to kernel development and recently started doing so. I use Fedora 24 and everywhere in the internet there are tools provided only for Ubuntu. Here you've added mint. Can you please add Fedora too?
Works perfectly but noticed on oneplus kernel builds it needs openssl to be installed to pass the certs
I am doing a fresh install of Debian 9.4.0. I always use your scripts to setup my build environment, because they're quick, easy and just work.
Anyway, I got this warning toward the end. Not sure if I need re2c for a full environment. But, the script doesn't necessarily check that it's installed (it wasn't). I'm installing it manually, so ignore this issue if it is an unimportant warning.
warning: A compatible version of re2c (>= 0.11.3) was not found; changes to src/*.in.cc will not affect your build.
Thanks! Keep up the amazing work.
https://www.deepin.org/
`
Executing: /tmp/apt-key-gpghome.OBuHUu74oo/gpg.1.sh --keyserver hkps://keyserver.ubuntu.com --recv-key C99B11DEB97541F0
gpg: key C99B11DEB97541F0: public key "Nate Smith [email protected]" imported
gpg: Total number processed: 1
gpg: imported: 1
Traceback (most recent call last):
File "/usr/bin/apt-add-repository", line 95, in
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in init
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Deepin/apricot
`
Are you going to update the scripts in /setup to make them compatible with Ubuntu 18.04 Bionic Beaver ? In particular I really like the "android_build_env.sh" and the " install_android_sdk.bash
" scripts.
Hello,
I ran the android_build_env.sh script and received an "E: Unable to locate package libisl15" error and an "warning: A compatible version of re2c (>= 0.11.3) was not found; changes to src/*.in.cc will not affect your build" error in the bootstrapping ninja step. I'm on Ubuntu 19.10. Here's the full log: https://del.dog/android_build_env Thanks for your help.
Installing Dependencies!
[sudo] password for gureumi:
기존:1 http://kr.archive.ubuntu.com/ubuntu xenial InRelease
기존:2 http://kr.archive.ubuntu.com/ubuntu xenial-updates InRelease
기존:3 http://kr.archive.ubuntu.com/ubuntu xenial-backports InRelease
기존:4 http://download.mono-project.com/repo/debian wheezy InRelease
기존:5 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease
기존:6 http://security.ubuntu.com/ubuntu xenial-security InRelease
패키지 목록을 읽는 중입니다... 완료
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다
상태 정보를 읽는 중입니다... 완료
Note, selecting 'liblz4-1-dbg' for glob 'liblz4-*'
Note, selecting 'liblz4-0.0-dbg' for glob 'liblz4-*'
Note, selecting 'liblz4-1' for glob 'liblz4-*'
Note, selecting 'liblz4-tool' for glob 'liblz4-*'
Note, selecting 'liblz4-dev' for glob 'liblz4-*'
주의, 'ncurses-dev' 대신에 'libncurses5-dev' 패키지를 선택합니다
Note, selecting 'lzma-alone' for glob 'lzma*'
Note, selecting 'lzma-dev' for glob 'lzma*'
Note, selecting 'lzma' for glob 'lzma*'
Note, selecting 'liblzma5' for glob 'liblzma*'
Note, selecting 'liblzma-dev' for glob 'liblzma*'
Note, selecting 'liblzma-doc' for glob 'liblzma*'
E: libwxgtk2.8-dev 패키지를 찾을 수 없습니다
E: Couldn't find any package by glob 'libwxgtk2.8-dev'
E: 'libwxgtk2.8-dev' 정규식에 해당하는 패키지가 없습니다
E: binutils-static 패키지를 찾을 수 없습니다
Dependencies have been installed
repo has been Downloaded!
gureumi@ubuntu:~/other/scripts$
libwxgtk2.8-dev not found, binutils-static not found.
Check This
cli/cli#5523 (comment)
( Error )
Ign:2 https://cli.github.com/packages jammy InRelease
Err:3 https://cli.github.com/packages jammy Release
404 Not Found [IP: 2606:50c0:8000::153 443]
Hit:4 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:6 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:7 http://security.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done
E: The repository 'https://cli.github.com/packages jammy 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.
Hit:1 https://repo.steampowered.com/steam stable InRelease
Ign:2 https://cli.github.com/packages jammy InRelease
Err:3 https://cli.github.com/packages jammy Release
404 Not Found [IP: 2606:50c0:8000::153 443]
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Hit:6 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:7 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
E: The repository 'https://cli.github.com/packages jammy 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.
Line 10
sudo pacman -S pacaur
This won't install pacaur as it isnt available on the default repos and causes the rest of the script to fail for me.
Hi. Can you help me? When i run the command virtualenv2 venv I get error.
"Traceback (most recent call last):
File "/usr/bin/virtualenv2", line 6, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3251, in
@_call_aside
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3235, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 3264, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 583, in _build_master
ws.require(requires)
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/site-packages/pkg_resources/init.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'distlib<1,>=0.3.0' distribution was not found and is required by virtualenv"
can you help me? Thank you
repo has been Downloaded!
Setting up USB Ports
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 270k 100 270k 0 0 170k 0 0:00:01 0:00:01 --:--:-- 170k
adb: no process found
Installing make 3.81 instead of 4.1
install: 'utils/make'를 설명할 수 없음: 그런 파일이나 디렉터리가 없습니다
Installing repo
install: 'utils/repo'를 설명할 수 없음: 그런 파일이나 디렉터리가 없습니다
Installing ccache
install: 'utils/ccache'를 설명할 수 없음: 그런 파일이나 디렉터리가 없습니다
no such file or directory - utils/make, utils/repo, utils/ccache.
Using lsb_release -d
returns the current version running on the system, so in place of two different scripts, we can make just one script that installs all common packages, then detects the current version and installs version specific packages
GitHub has released their own CLI tool. This is useful to upload releases via the terminal after a build is done. Would be cool if you can add support for it in server/android_build_env.sh script.
Ref:
Current: sudo apt -y install git-core python gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev \
Should be: sudo apt-get -y install git-core python gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev \
setup/install_android_sdk.sh: line 24: cd: OLDPWD not set
I am using Ubuntu 20.04
after i give command (. android_build_env.sh) in the Setup folder. It give errors
For both distributions, libncurses5 is available via apt. The preferred method should be to use the apt version if possible in my opinion.
You can check it here:
hello, can you teach me how to use the termux application?
setup/android_build_env.sh: line 16: sudo: command not found
setup/android_build_env.sh: line 19: sudo: command not found
setup/android_build_env.sh: line 21: lsb_release: command not found
setup/android_build_env.sh: line 33: sudo: command not found
all worked fine up until a few minutes ago .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.