dpkg --list not showing installed kernel version - linux

I am running ubuntu 14.04 with kernel 3.13
I was following eudyptula challenge which asked me to download kernel source from linus's git and build,install, which I did and now I have two kernels, 3.13 and 3.15.
I wanted to verify the installation and read on some website that dpkg --list | grep linux-image would give me list of all installed kernels but I get only 3.13.
I currently booted 3.15
terminal outputs below:
ashish#ashish-PC:~$ uname -r
3.15.0-07913-g64b2d1f
ashish#ashish-PC:~$ dpkg --list | grep linux-image
ii linux-image-3.13.0-24-generic 3.13.0-24.46 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii linux-image-extra-3.13.0-24-generic 3.13.0-24.46 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii linux-image-generic 3.13.0.24.28 amd64 Generic Linux kernel image

If you installed from source not creating a .deb package dpkg --list won't show you because it didn't install it and knows nothing about it.

check your /boot directory:
$ ll /boot/
total 30M
-rw-r--r-- 1 root root 773K avr 10 2012 abi-3.2.0-23-generic
-rw-r--r-- 1 root root 137K avr 10 2012 config-3.2.0-23-generic
drwxr-xr-x 3 root root 12K déc 3 2013 grub
-rw-r--r-- 1 root root 21M déc 12 18:16 initrd.img-3.2.0-23-generic
-rw------- 1 root root 2,8M avr 10 2012 System.map-3.2.0-23-generic
-rw-r--r-- 1 root root 4,8M mai 20 2012 vmlinuz-3.2.0-23-generic
Your kernel are the vmlinuz* files.

Related

Only some binaries are visible in pycharm python venv

I check for the existence of installed tools via shutil.which()
Both tools are installed via apt get install ffmpeg mediainfo and their binaries are located in /usr/bin with the same file flags and ownership in the host system:
lala#lala:/usr/bin$ ls -la ff*
-rwxr-xr-x 1 root root 301544 May 19 2022 ffmpeg
-rwxr-xr-x 1 root root 22920 Feb 14 2022 ffmpegthumbnailer
-rwxr-xr-x 1 root root 149984 May 19 2022 ffplay
-rwxr-xr-x 1 root root 178832 May 19 2022 ffprobe
lala#lala:/usr/bin$ ls -la media*
-rwxr-xr-x 1 root root 47352 Apr 3 2022 mediainfo
-rwxr-xr-x 1 root root 374000 Apr 3 2022 mediainfo-gui
BUT within the virtual environment only one of them is available. The other one simply doe not exist
sh-5.1$ /usr/bin/ffmpeg
ffmpeg version 5.0.2 Copyright (c) 2000-2022 the FFmpeg developers
[... more ...]
sh-5.1$ /usr/bin/mediainfo
sh: /usr/bin/mediainfo: No such file or directory
So what could be the reason, why one binary is available and the other one is not.
Edit: this happens only in the termial / execution environment within pycharm
It turns out that Pycharm installed by flatpak has its own "environment" where one of the binaries was installed - the other one was not.

What's the difference between libjpeg.so.8 and libjpeg.so.62

There are always jpeg decoder libraries pre-installed on Linux like:
/usr/lib/x86_64-linux-gnu/libjpeg.so
/usr/lib/x86_64-linux-gnu/libjpeg.so.62
/usr/lib/x86_64-linux-gnu/libjpeg.so.62.0.0
/usr/lib/x86_64-linux-gnu/libjpeg.so.8
/usr/lib/x86_64-linux-gnu/libjpeg.so.8.0.2
What is the difference between the so library? Does libjpeg.so.62 build from libjpeg-turbo?
Firstly, if you run:
ls -l /usr/lib/x86_64-linux-gnu/*jpeg*
you will see that most of the files are just symlinks to the one with the full version, so programs can link against the latest one by specifying an unversioned library in the knowledge that it will point to the latest version:
lrwxrwxrwx 1 root root 17 Oct 20 2016 libjpeg.so -> libjpeg.so.62.2.0
lrwxrwxrwx 1 root root 17 Oct 20 2016 libjpeg.so.62 -> libjpeg.so.62.2.0
-rw-r--r-- 1 root root 436224 Oct 20 2016 libjpeg.so.62.2.0
Secondly, unfortunately I don't have the same files as you else I would help further, but in general, you can find which package a given file comes from like this:
dpkg -S someFile
So, on my system, I can see that libjpeg.a for example, comes from package libjpeg62-turbo-dev
dpkg -S libjpeg.a
libjpeg62-turbo-dev:amd64: /usr/lib/x86_64-linux-gnu/libjpeg.a

Install oracle imp / exp in Ubuntu

I have this Ubuntu version:
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
I just download oracle-instantclient12.2-basiclite-12.2.0.1.0-1.x86_64.rpm and install the tools using
alien -i oracle-instantclient12.2-basiclite-12.2.0.1.0-1.x86_64.rpm
But I can't find the exp anywhere, just these 2 files
root#localhost:/usr/lib/oracle/12.2/client64/bin# ls -la
total 108
drwxr-xr-x 2 root root 4096 Nov 8 14:47 .
drwxr-xr-x 4 root root 4096 Nov 8 14:47 ..
-rwxr-xr-x 1 root root 43797 Mar 16 2017 adrci
-rwxr-xr-x 1 root root 56984 Mar 16 2017 genezi
The utilities are not part of the basic (or basiclite) package. The instant client download page lists the packages and what they contain. You need to get the tools package, oracle-instantclient12.2-tools-12.2.0.1.0-1.x86_64.rpm, in addition to the basic package, to be able to use exp and imp (and their datapump equivalents; and SQL*Loader).
You may find the SQL*Plus package useful as well.

can not unrar the files

The following is my machine, its VM
Linux localhost.localdomain 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
I downloaded and untar the rar packages like following
drwxr-xr-x 2 cloudera cloudera 4096 Dec 12 2009 rar
-rw-rw-r-- 1 cloudera cloudera 831871 Dec 12 2009 rarlinux-3.9.1.tar.gz
went to RAR folder
[cloudera#localhost rar]$ ls -ltr rar unrar
-rwxr-xr-x 1 cloudera cloudera 205328 Dec 12 2009 unrar
-rwxr-xr-x 1 cloudera cloudera 364580 Dec 12 2009
[cloudera#localhost rar]$ ./unrar
bash: ./unrar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
but If I try with sudo , error suppress but no output
[cloudera#localhost rar]$ sudo ./unrar e /home/cloudera/Downloads/xyz.rar
[cloudera#localhost rar]$ <<<Nothing happens>>>>
[cloudera#localhost rar]$ ls /home/cloudera/Downloads/
xyz.rar ----<<< same one file remains the unrar does not work>>>>
Ewww! Cloudera - My Pet hate! ;-)
Looks like you are missing a dependancy I did this with a Fedora box and got your error and resolved it with:
yum install glibc.i686
May need to adapt depending on your Linux Distro
HTH's Thanks //P

Installing QT on -- ubuntu linux -- few questions

I have installed QT5.1 on my host linux platform.
Now i am getting an error while opening Qt creator from dashboard :---
qt creator linux cannot overwrite file /home qt version xml
This link suggest how to get rid of this error, I followed it & above error is resolved :--
https://askubuntu.com/questions/253785/cannot-overwrite-file-home-baadshah-config-qtproject-qtcreator-toolchains-xml
.config folder contains :---
dinesh#ubuntu:~/.config$ ls
dconf goa-1.0 QtProject update-notifier
gnome-disk-utility ibus QtProject.conf user-dirs.dirs
gnome-session nautilus Trolltech.conf user-dirs.locale
My PATH variable is :---
dinesh#ubuntu:~/.config$ $PATH
bash: /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: No such file or directory
qt creator executable, is here :---
dinesh#ubuntu:~/.config/QtProject$ ls -l
total 16
drwxr-xr-x 5 dinesh dinesh 4096 Nov 19 21:48 qtcreator
-rw-r--r-- 1 dinesh dinesh 3072 Nov 18 02:56 QtCreator.db
-rw-r--r-- 1 dinesh dinesh 5739 Nov 19 21:53 QtCreator.ini
Which command is not able to locate qt creator executable :---
dinesh#ubuntu:~/.config/QtProject$ which qtcreator
dinesh#ubuntu:~/.config/QtProject$
I have installed QT in /opt/Qt5.1.1 folder :--
dinesh#ubuntu:/opt/Qt5.1.1$ ls
5.1.1 Licenses MaintenanceTool.ini README.txt
components.xml MaintenanceTool network.xml Tools
InstallationLog.txt MaintenanceTool.dat qt-project.org.html
Now I have few questions :---
1> In $PATH enviromental variable we have not mentioned the location of QTcreator then how dashboard is able to open QTcreator ?
2> Also what exactly is the difference between these two folders , ~/.config & /opt/Qt5.1.1 ?
3> How can i make my QT project to compile against library QT4.8.5 ? Do i have to make some changes in ~/.config ?
4> If i install QT4.8.5 does it install seprate QTcreator for itself ?
Please suggest so that i come to know how everything works in synchronization with each other ?

Resources