Problem with installing headers in debian 9.5 stretch - linux

When I try to install header by using this command:
apt install linux-headers-$(uname -r)
Then I get this output with error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.9.124-xxxx-std-ipv6-64
E: Couldn't find any package by glob 'linux-headers-4.9.124-xxxx-std-ipv6-64'
E: Couldn't find any package by regex 'linux-headers-4.9.124-xxxx-std-ipv6-64'
I need those headers to install geoip, without them executing this command:
modprobe xt_geoip
Returns this error:
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.9.124-xxxx-std-ipv6-64/modules.dep.bin'
modprobe: FATAL: Module xt_geoip not found in directory /lib/modules/4.9.124-xxxx-std-ipv6-64
Here are my sources.list:
https://pastebin.com/6eVpTuUD
My debian version:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.5 (stretch)
Release: 9.5
Codename: stretch
I want just to note that I am newbie in linux, sorry if this problem is obvious. I were trying to find answer on google but I did not manage to.

Related

Install .deb Package Error (dpkg error) Debian/Ubuntu machine

I've been confronting an issue while installin .deb package on debian and ubuntu machine. i have tried various way but not able to install it.
it throws me an error below. I' trying to install snowagent on linux based machine. s
Not only this I've also tried following command sudo apt-get install agent.deb but each time when i run this command on shell it prompts me following error.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package agent.deb
E: Couldn't find any package by glob 'agent.deb'
E: Couldn't find any package by regex 'agent.deb'
When i use "dpkg -s agent" its successful installation it prompts me status "Install ok half-configured"
Kindly assit.
Thanks

perf version not matching with my kernel version

I'm currently working on Raspberry pi zero.
When i write:
perf --version
/usr/bin/perf: line 13: exec: perf_4.14: not found E: linux-perf-4.14
is not installed.
when i do:
sudo apt-get install linux-perf
Then:
linux-perf is already the newest version (4.9+80+deb9u4+rpi1)
0 upgraded, 0 newly installed, 0 to remove and 216 not upgraded.
sudo apt-get install perf_4.14
E: Unable to locate package perf_4.14
E: Couldn't find any package by glob
'perf_4.14' E: Couldn't find any package by regex 'perf_4.14'
sudo apt-get install linux-tools-common linux-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-tools-common
sudo apt-get install linux-tools-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-tools-4.14.79
E: Couldn't find any package by glob 'linux-tools-4.14.79'
E: Couldn't find any package by regex 'linux-tools-4.14.79'
Please help me in this!
Thanks
I encountered the same problem in the k8s pod environment.
Install perf in Debian GNU/Linux 10:
sudo apt install linux-perf
Tried to use perf, but reported an error:
:~/perf-tools$ sudo perf -h
/usr/bin/perf: line 13: exec: perf_5.4: not found
E: linux-perf-5.4 is not installed.
After research, I found that /usr/bin/perf used uname -r to get the linux kernel version of the host instead of the version of the container.
So I solved it by renaming it.
sudo cp /usr/bin/perf_4.19 /usr/bin/perf_5.4

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

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/

How to install clang 3.6 in Ubuntu 12.04

I want to install clang 3.6 on Ubuntu 12.04. How can I do that?
I am trying this but It couldn't find package:
$ sudo apt-get install clang-3.6
[sudo] password for xristina:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package clang-3.6
E: Couldn't find any package by regex 'clang-3.6'
I think you need to rebuild them.
Good luck

Linux - Qmake Compiling Error - 'vorbisfile not found' although installed

I try to compile Goldendict on Debian. I have installed all the necessary dependencies, including libvorbis-dev, as listed in the 'README.md' file. However, I'm immediately running into the following error message when executing qmake or qmake-qt4.
JohnDoe#debian:~/goldendict$ qmake
Project MESSAGE: Install Prefix is: /usr/local
sh: 1: pkg-config: not found
Project ERROR: Package vorbisfile not found
JohnDoe#debian:~/goldendict$
I have tried to install it without the audio player support, but it's not working either.
JohnDoe#debian:~/goldendict$ sudo qmake "DISABLE_INTERNAL_PLAYER=1"
Project MESSAGE: Install Prefix is: /usr/local
sh: 1: pkg-config: not found
Project ERROR: Package vorbisfile not found
JohnDoe#debian:~/goldendict$
I have Qt version 4.8.6 installed.
Here are the instructions on 'how-to install Goldendict', which I have followed: https://github.com/goldendict/goldendict/blob/master/README.md
How can I get this work? Any help is welcome.
PS: Here's the proof that the vorbis package is installed.
PROOF from dpkg:
JohnDoe#debian:~$ dpkg -s libvorbis-dev
Package: libvorbis-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 1715
Maintainer: Debian Xiph.org Maintainers <pkg-xiph-maint#lists.alioth.debian.org>
Architecture: amd64
Multi-Arch: same
Source: libvorbis
Version: 1.3.4-2
Depends: libogg-dev, libvorbis0a (= 1.3.4-2), libvorbisenc2 (= 1.3.4-2), libvorbisfile3 (= 1.3.4-2)
PROOF from apt-get:
JohnDoe#debian:~/goldendict$ sudo apt-get install libvorbis-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libvorbis-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
JohnDoe#debian:~/goldendict$
Not on Debian, but on Mac it was a problem. The workaround is, you can change your .pro file for Qt projects, so that it does not look for pkg-config, by adding the following line:
QT_CONFIG -= no-pkg-config
Another guess would be that your path is not set properly. I would try adding the pkg-config path to the environment variable:
$ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/<path_to_pkg-config>/pkgconfig

Resources