Can't find gitlab-ci-multi-runner package - gitlab

I'm trying to install gitlab-ci-multi-runner on ElementaryOS Freya, but having no success.
I've correctly follow the steps in official documentation:
https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/linux-repository.md#install-using-official-gitlab-repositories
The answer always is:
luiz#kryptonita:~/node/my-nodejs-app$ sudo apt-get install gitlab-ci-multi-runner
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gitlab-ci-multi-runner
To understand: I'm trying to set up a Runner to test a Node.js "Hello World". I'm studying this technology.
EDIT: Result of cat /etc/apt/sources.list.d/runner_gitlab-ci-multi-runner.list
# this file was generated by packages.gitlab.com for
# the repository at https://packages.gitlab.com/runner/gitlab-ci-multi-runner
deb https://packages.gitlab.com/runner/gitlab-ci-multi-runner/elementaryos/ freya main
deb-src https://packages.gitlab.com/runner/gitlab-ci-multi-runner/elementaryos/ freya main

Indeed they do not have repos for elementary os freya. I see two possible solutions:
Method 1: Using Ubuntu Repos
Now, I'm not sure this procedure works, but since freya is bases on Ubuntu 14.04, I think you can use trusty's repo.
Careful this can potentially breaks things and dependencies, I have not tested it.
Edit the /etc/apt/sources.list.d/runner_gitlab-ci-multi-runner.list file:
sudo gedit /etc/apt/sources.list.d/runner_gitlab-ci-multi-runner.list
Delete all and add
deb https://packages.gitlab.com/runner/gitlab-ci-multi-runner/ubuntu/ trusty main
deb-src https://packages.gitlab.com/runner/gitlab-ci-multi-runner/ubuntu/ trusty main
Then do sudo apt-get update && sudo apt-get install gitlab-ci-multi-runner
In this way you have automatic updates.
Method 2: Manually download the package
If you prefer to do not add a PPA studied for another distro, just download the package from the website (here a list of the packages). but in this way you have to manually update the program each time!
Otherwise you can use docker/lxc/virtualbox to install Ubuntu (or Fedora or whatever is official supported) and use it

Only this worked for me:
curl -s https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash
From: https://packages.gitlab.com/runner/gitlab-ci-multi-runner/install

Related

E: Unable to locate package arm-none-eabi-gcc

I'm working on a project in which I've to compile a MicroPython stack and build a firmware file for my STM32 boards. At present, I'm following through the instruction set given on https://docs.micropython.org/en/latest/develop/gettingstarted.html. Hence, to compile the code, I need an ARM cross-compiler (mentioned on the website). After entering the following command on the terminal "sudo apt-get install arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-newlib", I'm getting some errors (basically, unable to locate packages). I tried googling a lot but didn't come across any relevant links. Does anyone know what I need to do?
My pc configurations are AMD Ryzen 5 processor (IdeaPad 3 15ALC6), and I'm using Ubuntu 22.04.1 LTS OS. The snippet of the error is given below:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package arm-none-eabi-gcc
E: Unable to locate package arm-none-eabi-binutils
E: Unable to locate package arm-none-eabi-newlib
I found the solution based on the discussion available at https://unix.stackexchange.com/questions/377345/installing-arm-none-eabi-gcc and the documentation available on https://mynewt.apache.org/latest/get_started/native_install/cross_tools.html#installing-the-arm-cross-toolchain.
The name and structure of the software changed over time. The arm-none-eabi-gcc is gcc-arm-none-eabi now, and so on.
$ sudo apt-get remove binutils-arm-none-eabi gcc-arm-none-eabi
$ sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install gcc-arm-none-eabi
$ sudo apt-get install gdb-arm-none-eabi
And finally, to verify the downloads, you can run the following commands:
arm-none-eabi-gcc --version
arm-none-eabi-g++ --version
arm-none-eabi-size --version
In /etc/apt/sources.list, make sure the lines with universe are uncommented.
Re-run apt update and (as long as you have a working internter connection) it should work.

gcc-4.7 with Debian 8 Jessie

I use debian 8 Jessie, which has only gcc-4.9 available in the repositories. I tried to install gcc-4.7 in two ways without success.
First try
I tried installing gcc manually by downloading the file gcc-4.7.0.tar.gz
But when I install the dependency libraries (apt-get install Libmpc-dev libmpfr-dev libgmp-dev gcc-multilib)
the Debian installs, without asking gcc-4.9 and the compatible libraries with gcc-4.9.
I try run make for manual installation, but errors occur and it is not possible to install manually.
Second Try
I tried adding PPA repositories with gcc-4.7, in the file /etc/apt/sourc.list
Add-apt-repository ppa: ubuntu-toolchain-r / test as it teaches in this Link: https://askubuntu.com/questions/193513/problem-adding-a-ppa-to-install-gcc-4-7
When try apt-get install gcc-4.7 you are prompted to install several Dependencies ... when requesting to install the dependencies, the Below.
Root # vmhp110deb8: / home / user1 # apt-get install gcc-4.7 gcc-4.7-base
Reading package lists ... Done
Building dependency tree
Reading state information ... Done
Note, by selecting 'gcc-4.7-base' for regex 'gcc-4.7'
Package gcc-4.7-base is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
Is available from another source
E: Package 'gcc-4.7-base' has no installation candidate
Root # vmhp110deb8: / home / user1 # add-apt-repository ppa: ubuntu-toolchain-r / test
I tried to find a repository that has gcc-4.7-base, but then it asks Installation of other dependencies, and informs that it has not found
Libraries are Obsolete, etc.
Attempt not yet tested
Another idea that i had is download the Debian 7 Wheezy DVD (which I think Which has gcc-4.7 and all dependencies) and add as repository, For debian to find all dependencies of gcc.4.7 on DVD. But this idea i not have tested yet.
Could anyone help me with how I could install gcc 4.7 on debian 8?
As you can read here
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765379
gcc-4.7 is not included in Debian Jessie
Maybe you can try this
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.7
EDIT : You already tries this. I didnt notice.
Try this manual:
http://charette.no-ip.com:81/programming/2011-12-24_GCCv47/
I hope this helps to you :)

About Updating linux-headers

I did dist-upgrade on kali 2.0, after update when i tried to reboot it waited too long i thought it locked or something.
I manually turn off pc.
After restart it was working normally but when i try to install something manually(with make) then i realize my mistake.
make[1]: *** /lib/modules/4.3.0-kali1-amd64/build: No such file or directory. Stop.
That error showed up when i try to make,
After that i try to install linux-headers with that command,
apt-get install -y linux-headers-$(uname -r)
but i was getting another error. It was says like "There's no package". I dont remember exactly.
old uname -r
4.3.0-kali1-amd64
and i installed new headers,
4.4.0-kali1-amd64
Now there is 2 directory in /lib/modules/
4.3.0-kali1-amd64/ 4.4.0-kali1-amd64/
When i write uname -r it still show me old header(4.3.0-kali1-amd64)
I tried to update-initframs -u but didnt worked.
When i try to make it still say same error
make[1]: *** /lib/modules/4.3.0-kali1-amd64/build: No such file or directory. Stop.
How can i fix it ?
Thank in advance
I think you probably meet this problem that lack of linux headers when you install the VMware Tools.
In fact, there's new way to solve the issue in official Kali website: http://docs.kali.org/general-use/install-vmware-tools-kali-guest.
As the tutorial says, if your version of VMware is after Sept 2015, you can use the following code to install it:
apt-get update
apt-get install open-vm-tools-desktop fuse
reboot
Then, you may find you can use the VMware Tools and with the linux-headers updating.
Heres my experience with this problem - using hardware not VM.
I installed Kali Linux from a live memory stick. Whilst installing I didn't have an internet connection.
This meant that my sources.list file was set to "Default Off-line Install Values". This meant that when installing I was limited to just the packages and data from the memory stick I Initially installed from.
To fix this, you need to change your sources.list (called switching branches):
Open terminal:
nano /etc/apt/sources.list
This opens the sources file
Now at the top of the file paste in the following two lines:
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
Press CTRL X then Press Y and Enter to save the file.
Now you can type the following commands to update Kali:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
reboot
And finally, you should now be able to...
sudo apt-get install linux-headers-$(uname -r)
This is just my unique experience with this error stemming from an offline install.
I hope this helps someone else out there.
Reference - https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/

Create a debian package with dependency from new repository

I need my .deb package to depend from rsync >= 3.1.0.
The problem is that it must be installed in Ubuntu 12.04 LTS (precise), that provides rsync 3.0.9: if I specify the "Depends" option, the dependency won't be satisfied.
I know that, manually, I can:
Add a repository containing rsync 3.1.0 to /etc/apt/sources.list (i.e. http://security.ubuntu.com/ubuntu trusty-security main)
apt-get update
apt-get install rsync
And my rsync will get updated to 3.1.0.
So, how can I have this automatically done by my .deb package installation?

How to make Debian package install dependencies?

I want to make a simple Debian package to install a simple tool that depends on Qt4 libs.
In control file I have defined that it depends on Qt4 libs however, by the time I'm testing the package it says that the dependency could not be met.
Question:
How can I make Debian trigger apt to install the dependencies as well?
Can't find that the documentation however I know that apt-get does that.
If you want to avoid creating a local APT repository, you can do:
dpkg -i mypackage.deb
apt-get install --fix-missing
If you do want to create a local repository, you can use reprepro for this.
If you install it via dpkg it won't work because dkpg doesn't know where to find additional dependencies. You could do it via apt-get if you build your own repo, but it's kind of time-consuming the first time (it's not difficult, just something "new" the first time that needs some time to be learnt).
On the other hand, and the solution you are probably looking for is gdebi (you may need to install it: apt-get install gdebi-core). It's a tool that checks the dependencies for a package and calls apt-get to fetch and install them, and then calls dpkg to install your package.
Per #textshell in this answer:
starting with apt 1.1 (available in Xenial (16.04), stretch) apt install also allows local files:
sudo apt install ./foo-1.2.3.deb
So much simpler and cleaner.
See the release
announcment
This will also install dependencies, just like a normal apt install or apt-get install.
If you're creating the Debian package, you specify its dependencies in the debian/ directory control files; I believe debian/control takes Depends: directives for that purpose.
I don't know the details too clearly, myself, but there are instructions at http://www.debian.org/doc/manuals/maint-guide/ ; in particular, http://www.debian.org/doc/manuals/maint-guide/dreq.en.html#control seems to be the right place to start looking.
One way would be to create a local package repository on your computer and add it to /etc/apt/sources.list. Then you could install the package from your local repository with apt-get and have the dependencies resolved automatically.
There's probably an easier way to do it, but I don't know what that would be.

Resources