fail to install gcc-4.7-multilib-arm-linux-gnueabihf - linux

I'm trying to install gcc-4.7-multilib-arm-linux-gnueabihf at Ubuntu, but got the below error:
Reading package lists… Done Building dependency tree Reading state
information… Done E: Unable to locate package
gcc-4.7-multilib-arm-linux-gnueabihf E: Couldn’t find any package by
glob ‘gcc-4.7-multilib-arm-linux-gnueabihf’ E: Couldn’t find any
package by regex ‘gcc-4.7-multilib-arm-linux-gnueabihf’

the package looking for is probably named differently/has gotten a version upgrade
please next time run:
hostnamectl; # and give details about what os is used
try:
su - root; # become root
apt update; # update apt package database
apt search gnueabihf; # try to find a package that contains this string
hostnamectl; # tested on this system
Operating System: Debian GNU/Linux 9 (stretch)
Kernel: Linux 4.9.0-9-amd64
Architecture: x86-64
apt install gcc-arm-linux-gnueabihf; # install gcc arm compiler
probably wanted to test cross compiling RUST "hello world" for ARM?
check out my article: https://dwaves.org/2019/09/27/compile-rust-hello-world-for-arm7/

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.

linux tools package container

I'm fairly new to Docker, and I'm trying to use perf to check performance on some stuff. Perf doesn't come with the images I'm using, so I went to install it.
I used
apt-get update
apt-get install perf
which didn't work because perf is part of another package.
I then tried
apt-get install -y linux-tools-common linux-tools-generic linux-tools-`uname -r`
which resulted in
E: Unable to locate package linux-tools-common
E: Unable to locate package linux-tools-generic
E: Unable to locate package linux-tools-3.10.0-862.3.3.el7.x86_64
E: Couldn't find any package by glob 'linux-tools-3.10.0-862.3.3.el7.x86_64'
E: Couldn't find any package by regex 'linux-tools-3.10.0-862.3.3.el7.x86_64'
Any recommendations as to what I should try?
I assume that you have a fairly recent Linux in your container and an old one on the host.
Note that perf has to be the exact same version as your Linux kernel. And that with containerization the kernel of the host system is used.
When you install the generic perf package in the container the package manager retrieves the version of the (host) kernel and tries to install the perf package with the very same version. Due to the newer version of the Linux distribution in the container, the necessary older perf package is not part of its package repository anymore leading to the error message you are seeing.
There are multiple solutions to this:
a) update the host Linux kernel to supported by the containers Linux distribution's release,
b) downgrade the containers Linux distribution, or
c) make the necessary perf package available in the container. This is probably tricky and you might screw up the container's package manager. But it's just a container ;). You can figure out the necessary version with uname -a.
What helped me on Debian 10 was:
apt install linux-perf

E: Package 'gdb-arm-linux-gnueabi' has no installation candidate

I try to install gdb-ARM for cross compile on my ubuntu 14.04 x86 architecture . I want to debug a program on my target with an ARM architecture.I tried this command :
sudo apt-get install gdb-arm-linux-gnueabi
I got this error :
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gdb-arm-linux-gnueabi 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 'gdb-arm-linux-gnueabi' has no installation candidate
any help please ?
You may want to try sudo apt install binutils-mips64el-linux-gnuab or sudo apt install gdb-arm-none-eabi

Unable to install libgdamm4.0-dev on Ubuntu 14.04 LTS

After this command on the terminal:
sudo apt-get install libgdamm4.0-dev
It displays:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libgdamm4.0-dev
E: Couldn't find any package by regex 'libgdamm4.0-dev'
How to install it? If there is any dependencies, then what are they and how to install them?
After searching for a bit, it seems as if the stock repositories don't come with libgdamm4.0. Although, they do come with libgdamm5.0.
You might have run across a reference that installs libgdamm4.0 on Ubuntu 10.04, the stock repositories for that version might come with the older libgdamm4.0 version.
In any case, you can install the new version of the software suite as such.
apt-get install libgdamm5.0-dev
In the future, you can easily search the repositories you have synced with the apt-cache tool, here is an example from running it myself.
apt-cache search libgdamm
libgdamm-5.0-13 - C++ wrappers for libgda3
libgdamm5.0-dev - C++ wrappers for libgda3 (library headers)
libgdamm5.0-doc - C++ wrappers for libgda3 (documentation)
libgdamm4.0 http://old-releases.ubuntu.com/ubuntu/pool/universe/libg/libgdamm4.0/
The latest was for Ubuntu 10.04 : libgdamm4.0-13_4.1.2-0ubuntu1_amd64.deb / libgdamm4.0-13_4.1.2-0ubuntu1_i386.deb → 2011.

System crash after oracle installation with yum

recently i tried to install oracle on my linux with apt (I never used yum before) using fast manual:
http://www.oracle.com/technetwork/articles/servers-storage-admin/ginnydbinstallonlinux-488779.html
And after command:
sudo yum install oracle-rdbms-server-11gR2-preinstall
I got error:
Failed: ca-certificates.noarch 0:2010.63-3.el6_1.5 chkconfig.x86_64 0:1.3.49.3-2.el6 file-libs.x86_64 0:5.04-15.el6 filesystem.x86_64 0:2.4.30-3.el6
initscripts.x86_64 0:9.03.38-1.0.1.el6_4.2
Complete!
And something gone wrong because command like: ps, top are crashing
login#Ass-K55VJ:/etc/yum/repos.d$ ps -e
ps: relocation error: ps: symbol procps_number_version, version _3_2_5 not defined in file libproc-3.2.8.so with link time reference
login#Ass-K55VJ:/etc/yum/repos.d$ top
Segmentation fault (core dumped)
then I tryied to uninstall oracle and dependencies but after command:
sudo yum remove oracle-rdbms-server-11gR2-preinstall
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Jul 10 2013, 06:42:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]
If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq
So it seems like yum install in my system new libraries but didn't link it correctly? I dont know what do in this moment because it seems like armagedon on my ubuntu...
Does this mean you're on ubuntu and tried to install rpm packages using yum? The manual you used is for Oracle Linux 6, why would you try that on ubuntu?
rpm packages are not compatible with debian based systems like ubuntu, which use deb packages. So you've probably screwed your system big time, overwriting important system libraries with incompatible ones.
If apt-get is still working, then you can try to reinstall (apt-get --reinstall install) the equivalent libraries to the ones mentioned in the install manual you linked to - naming isn't always the same for rpm and deb packages. dpkg -l should help you see which the correct installed libraries are. I'd start with the C libraries (libc) etc.
But if apt-get is screwed also, then you'd need to download the packages manually from an ubuntu mirror and install them using dpkg, but I think a reinstall (or restore from backup if you have one) would be the best option.

Resources