I want to install ws-rtsp-proxy_1.8-4_armhf.deb in my armhf7 board
while doing this I got the error. But I have all the dependencies which I have attached below.
root#rt-work:~# apt-get install ./ws-rtsp-proxy_1.8-4_armhf.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
ws-rtsp-proxy : Depends: libgcc1 (>= 1:3.5) but linaro-7.2-r2017.11 is installed
Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
Depends: systemd but it is not installable
E: Unmet dependencies. Try using -f.
But libgcc and libssl1 are already there as you can see:
root#rt-work:~# dpkg --list | grep -i "libgcc1"
ii libgcc1 linaro-7.2-r2017.11 armhf GNU cc ands
root#rt-work:~# dpkg --list | grep -i "libssl*"
ii libss2 1.43.5-r0 armhf Ext2 Filess
ii libssl1.0.2 1.0.2n-r0 armhf Secure Socr
ii libssp-dev linaro-7.2-r2017.11 armhf GNU stack s
ii libssp0 linaro-7.2-r2017.11 armhf
uname -a
Linux rt-work 4.4.138-cip25-yocto-standard #3 SMP PREEMPT Fri Feb 7 12:29:37 IST 2020 armv7l armv7l armv7l GNU/Linux
Version: 2.1.0
Poky (Yocto Project Reference Distro) 2.4.2
How could I solve the issue?
Edit
I download the ws-rtsp-proxy_1.8-4_armhf.deb from this site-->https://streamedian.com/ and i try to install it in my armhf board. The deb i have downloaded is Raspbian 9.3(.deb)
or libgcc and libssl are already present in my rootfs
Related
I want to compile a c file, but an error occurs after entering the compile command.
~$ gcc helloworld.c -o helloworld
fatal error: stdio.h: No such file or directory
compilation terminated.
I installed libc6-dev according to the method on the Internet
~$ sudo apt install libc6-dev
Then this error appeared
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libc6-dev : Depends: libc6 (= 2.23-0ubuntu11.3) but 2.31-0ubuntu9.2 is to be installed
Depends: libc-dev-bin (= 2.23-0ubuntu11.3)
E: Unable to correct problems, you have held broken packages.
So I followed the method
sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
sudo apt-get update
Hit:1 http://archive.canonical.com/ubuntu xenial InRelease
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:5 http://archive.ubuntu.com/ubuntu xenial-security InRelease
Reading package lists... Done
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
ubuntu-advantage-tools
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
sudo apt-get -u dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
ubuntu-advantage-tools
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
sudo dpkg --configure -a
sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
sudo apt-get install libc6-i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libc6-i386 : Depends: libc6 (= 2.23-0ubuntu11.3) but 2.31-0ubuntu9.2 is to be installed
E: Unable to correct problems, you have held broken packages.
What should I do
I have debian, but I think this solution can help you. This is the new line I added to my /etc/apt/sources.list
deb http://ftp.it.debian.org/debian bullseye-updates main contrib non-free
I am using WSL on Windows. I am unable to use
apt
or
apt-get
Here is the error message I have when I try to use apt or apt-get.
~$ apt
apt: error while loading shared libraries: libapt-private.so.0.0: cannot open shared object file: No such file or directory
Is there any way I can make it work again? I do not want to re-install WSL just because of this issue.
Ok at first find out what is your distribution.
In my case:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
Then visit and download ".deb" file to your PC accordingly:
Next run command sudo dpkg -i <XYZ>.deb . In my case:
sudo dpkg -i apt_1.6.1_amd64.deb
Then you just need to do:
apt --fix-broken install
Hope that helped ;)
How would one setup a .travis.yml to do cross compilation for MIPS target ? For PowerPC, this is trivial:
addons:
apt:
packages:
- gcc-powerpc-linux-gnu
Since I have access to the package directly.
For MIPS I cannot find a compiler for it in Ubuntu Trusty:
Software Packages in "trusty", Subsection devel
Even though it appears to be whitelisted:
https://github.com/travis-ci/apt-package-whitelist/commit/5761eccc#diff-3583c6522a64da63a272436df8de85ceR1311
It seems I would need an updated Ubuntu image (not possible on Travis):
GNU C compiler for the mips architecture
The alternate solution would be to use some pre-build MIPS compiler, eg:
Sourcery CodeBench Lite 2013.11-36 for MIPS GNU/Linux
But documentation rather explicitely says not to cache those things:
Caching Dependencies and Directories#Things not to cache
Large files that are quick to install but slow to download do not
benefit from caching, as they take as long to download from the cache
as from the original source:
Android SDKs
Debian packages
JDK packages
Compiled binaries
Docker images
How would you install a mips cross compiler on the default Ubuntu Travis image ?
Update I tried a naive solution:
addons:
apt:
sources:
- debian-sid
packages:
- gcc-mips-linux-gnu
But this fails with:
dpkg-deb: error: archive '/var/cache/apt/archives/gcc-7-base_7.2.0-18_amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/gcc-7-base_7.2.0-18_amd64.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
It seems dpkg in Ubuntu/Trusty will not support those deb files:
xz compressed control.tar files not supported
It seems I cannot use container based because of this requirement, I gave up and simply used:
sudo: true
dist: trusty
addons:
apt:
packages:
- u-boot-tools
before_install:
- sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/ xenial main universe"
- sudo apt-get -qq update
- sudo apt-get install -qq gcc-mips-linux-gnu
I am still intrigued by the fact that gcc-mips-linux-gnu is explicitly white-listed.
I am trying to get libcap to work on my machine (running Ubuntu 12.04) but I am currently unable to get this done:
Here is how it all began:
In Eclipse I got the warning that it could not resolve pcap.h.
It said Unresolved inclusion <pcap.h>
I installed libcap like this: sudo apt-get install libcap-dev
I restarted my machine.
And now I am still getting the warning that it cannot resolve pcap.h.
What am I doing wrong? Any ideas?
Try installing linux-headers, but you will need to know your kernel version:
Ex.:
tiago#dell:~$ sudo uname -a
Linux dell 3.11.0-20-generic #35~precise1-Ubuntu SMP Fri May 2 21:32:55 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
tiago#dell:~$ sudo apt-get install linux-headers-3.11.0-20
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-3.11.0-20 is already the newest version.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
I am trying to compile a program to put on a BeagleBone black, but im getting this error
when running the program on my board:
/lib/libc.so.6: version `GLIBC_2.17' not found
I made sure that i cross compiled for ARM (arm-linux-gnueabi-gcc).
On my desktop, I have EGLIBC 2.17-9.
What did i do wrong?
Had face the same problem.
Solved it by the following steps.
Downloaded "libc6_2.17-0ubuntu5.1_i386.deb"
sudo dpkg -i ipts libc6_2.17-0ubuntu5.1_i386.deb
sudo dpkg -i ipts libc6_2.17-0ubuntu5.1_i386.deb
Download 64 bit package from this site https://launchpad.net/ubuntu/raring/amd64/libc6/2.17-0ubuntu4
Install libc6 2.17 by the command ,
sudo dpkg -i libc6_2.17-0ubuntu4_amd64.deb
Cheers !
You don't have glibc 2.17 installed on your target board. You need to ensure that you have the SAME version of glibc (for ARM) installed on both the target board and on your build machine (your desktop). You can do this by either installing 2.17 on the target board or by figuring out what version you have installed there and installing that same version on your build machine (and linking with it).
This shell script worked for me: https://groups.google.com/forum/#!category-topic/beagleboard/oPq-Xt0TVdY
see the response from "A P" which is a script that installs a later version on the beaglebone black:
I am running a beaglebone black rev C with debian wheezy.
#!/bin/sh
echo "deb http://ftp.debian.org/debian sid main" >> /etc/apt/sources.list
apt-get update
apt-get -t sid install libc6 libc6-dev libc6-dbg
echo "Please remember to hash out sid main from your sources list. /etc/apt/sources.list"