#StackBounty: #linux #debian #hdmi #nvidia-geforce #alsa Getting openal audio on nvidia hdmi directly without pulseaudio

Bounty: 50

I want to get programs that use openal to send sound over the hdmi output of my nvidia card by using alsa libraries directly.
Here’s my configuration :

root@localhost /root % cat /proc/asound/cards               
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xef420000 irq 136
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xef080000 irq 17
root@localhost /root %

There doesn’t seems a kernel module is loaded for the Nvidia sound card (in Windows® there’s a specific sound card driver). If required, I have no idea of the kernel module to load.

root@localhost /root % lsmod | grep snd    
snd_hda_intel          36864  0
snd_hda_codec_realtek    90112  1
snd_hda_codec_generic    73728  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     49152  2
snd_hda_codec         135168  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core           81920  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               114688  4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd_timer              32768  1 snd_pcm
snd                    86016  8 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_pcm
soundcore              16384  1 snd
root@localhost /root %

So I unmuted spdif inputs in alsamixer:

but the sound is still being sent to my pc speakers instead of hdmi (maybe it’s normal since there’s no spdif input cable on my graphic card).

I read about .asoundrc, but I have no idea on which device to select (the hdmi audio ):

root@localhost /root % aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
    HDA Intel PCH, ALC887-VD Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC887-VD Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output
dmix:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Direct sample mixing device
dmix:CARD=PCH,DEV=1
    HDA Intel PCH, ALC887-VD Digital
    Direct sample mixing device
dmix:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct sample mixing device
dmix:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct sample mixing device
dmix:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=1
    HDA Intel PCH, ALC887-VD Digital
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct sample snooping device
hw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=1
    HDA Intel PCH, ALC887-VD Digital
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=1
    HDA Intel PCH, ALC887-VD Digital
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Hardware device with all software conversions
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 3
    HDMI Audio Output
dmix:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dmix:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Direct sample mixing device
dmix:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Direct sample mixing device
dmix:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 3
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 3
    Direct sample snooping device
hw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 3
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 3
    Hardware device with all software conversions
root@localhost /root %

Also none of the Nvidia devices of this list works with aplay -D

root@localhost /root % aplay -Dhw:1 /usr/share/kde4/apps/kolf/sounds/blackhole.wav
aplay: main:788: No such file or directory

Looking with strace, it seems it tries to open a non existing device file:

root@localhost /root % strace aplay -Dhw:1 /usr/share/kde4/apps/kolf/sounds/blackhole.wav 2>&1 | grep /dev/snd
open("/dev/snd/controlC1", O_RDONLY|O_CLOEXEC) = 3
open("/dev/snd/controlC1", O_RDWR|O_CLOEXEC) = 3
open("/dev/snd/pcmC1D0p", O_RDWR|O_NONBLOCK|O_CLOEXEC) = -1 ENOENT (No such file or directory)
root@localhost /root % 

Which looks normal since device 1-1 does not exists:

root@localhost /root % cat /proc/asound/devices
  1:        : sequencer
  2: [ 0]   : control
  3: [ 0- 0]: digital audio playback
  4: [ 0- 0]: digital audio capture
  5: [ 0- 1]: digital audio playback
  6: [ 0- 3]: digital audio playback
  7: [ 0- 7]: digital audio playback
  8: [ 0- 8]: digital audio playback
  9: [ 0- 0]: hardware dependent
 10: [ 0- 2]: hardware dependent
 11: [ 1]   : control
 12: [ 1- 3]: digital audio playback
 13: [ 1- 7]: digital audio playback
 14: [ 1- 8]: digital audio playback
 15: [ 1- 9]: digital audio playback
 16: [ 1- 0]: hardware dependent
 33:        : timer
root@localhost /root %

Additionally, I discovered pavucontrol claim the hdmi port is unplugged whereas I have the video signal on the television.


Get this bounty!!!

#StackBounty: #debian #linux-kernel #osx #console #qemu Generate a QEMU bootable kernel from an existing installation

Bounty: 100

I have been trying to setup QEMU to provide console output only. So far I have succeeded with the following parameters: qemu-system -curses -hda debian.img, where debian.img is a working Debian installation. No other boot related parameters are used. (N)Curses seems to be terribly buggy and slow for this purpose however, at least under a macOS host.

I found out that a better way to achieve console, non-gui output to the terminal that qemu is launched in by using -serial stdio -append "console=ttyAMA0" instead of -curses. This option requires you to specify a kernel with the -kernel parameter however. Is there a way I can extract a bootable kernel from my existing Debian installation that I can provide to qemu? I already tried copying vmlinux from /boot, and also followed this guide to extract the kernel from the OS, but they won’t boot under QEMU with my existing debian.img file. I believe I possibly have to supply the initrd.img from my OS to qemu as well.

Now, is it possible to keep using my exisiting debian.img file with a fully working OS on it, while also passing an (extracted) kernel from that image (or elsewhere if needed) to qemu using the -kernel parameter? (and the same question for the initrd.img file)
My guest OS on the debian.img file is Debian Jessy.


Get this bounty!!!

#StackBounty: #debian #docker #cross-compilation Docker CrossCompile Debian build-essential:armhf unmet dependencies

Bounty: 50

I try to move a VirtualBox VM to a docker image. We use the VirtualBox to crosscompile source code for a armhf device (something based on a BeagleBone)

I got problems at RUN apt-get install -y build-essential:armhf
The complete Docker code looks like this:

FROM debian:jessie

RUN apt-get update
RUN apt-get upgrade
RUN apt-get install -y build-essential module-assistant curl git cmake
RUN curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add -
RUN echo "deb http://emdebian.org/tools/debian jessie main" > /etc/apt/sources.list.d/crosstools.list
RUN dpkg --add-architecture armhf
RUN apt-get update
RUN apt-get install -y crossbuild-essential-armhf
RUN apt-get install -y curl:armhf
RUN apt-get install -y libcurl4-openssl-dev:armhf openssl:armhf 
RUN apt-get install -y build-essential:armhf
RUN apt-get install -y libssl-dev:armhf

I get the following error when running docker build:

Step 12/13 : RUN apt-get install -y build-essential:armhf
 ---> Running in ca5a82d30cc7
Reading package lists...
Building dependency tree...
Reading state information...
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:
 build-essential:armhf : Depends: gcc:armhf (>= 4:4.9.1) but it is not going to be installed
                         Depends: g++:armhf (>= 4:4.9.1) but it is not going to be installed
                         Depends: make:armhf
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c apt-get install -y build-essential:armhf' returned a non-zero code: 100

If i do look at the bash history on the VM it looks the same. What is the problem with my Docker code?

EDIT: Output with -o Debug::pkgProblemResolver=yes:

  Starting pkgProblemResolver with broken count: 2
Starting 2 pkgProblemResolver with broken count: 2
Investigating (0) dpkg-dev [ amd64 ] < 1.17.27 > ( utils )
Broken dpkg-dev:amd64 Depends on make [ amd64 ] < 4.0-8.1 > ( devel )
  Considering make:amd64 1 as a solution to dpkg-dev:amd64 2
  Added make:amd64 to the remove list
Broken dpkg-dev:amd64 Depends on binutils [ amd64 ] < 2.25-5+deb8u1 > ( devel )
  Considering binutils:amd64 1 as a solution to dpkg-dev:amd64 2
  Added binutils:amd64 to the remove list
  Fixing dpkg-dev:amd64 via keep of make:amd64
  Fixing dpkg-dev:amd64 via keep of binutils:amd64
Investigating (0) binutils [ armhf ] < none -> 2.25-5+deb8u1 > ( devel )
Broken binutils:armhf Conflicts on binutils [ amd64 ] < 2.25-5+deb8u1 > ( devel )
  Considering binutils:amd64 1 as a solution to binutils:armhf 2
  Added binutils:amd64 to the remove list
  Fixing binutils:armhf via remove of binutils:amd64
Investigating (0) make [ amd64 ] < 4.0-8.1 > ( devel )
Broken make:amd64 Conflicts on make [ armhf ] < none -> 4.0-8.1 > ( devel )
  Considering make:armhf 0 as a solution to make:amd64 1
  Added make:armhf to the remove list
  Fixing make:amd64 via keep of make:armhf
Investigating (0) binutils-arm-linux-gnueabihf [ amd64 ] < 2.25-5 > ( devel )
Broken binutils-arm-linux-gnueabihf:amd64 Depends on binutils [ amd64 ] < 2.25-5+deb8u1 > ( devel )
  Considering binutils:amd64 1 as a solution to binutils-arm-linux-gnueabihf:amd64 1
  Removing binutils-arm-linux-gnueabihf:amd64 rather than change binutils:amd64
Investigating (1) build-essential [ armhf ] < none -> 11.7 > ( devel )
Broken build-essential:armhf Depends on make [ armhf ] < none -> 4.0-8.1 > ( devel )
  Considering make:armhf 0 as a solution to build-essential:armhf 9999
  Re-Instated make:armhf
Investigating (1) dpkg-dev [ amd64 ] < 1.17.27 > ( utils )
Broken dpkg-dev:amd64 Depends on binutils [ amd64 ] < 2.25-5+deb8u1 > ( devel )
  Considering binutils:amd64 1 as a solution to dpkg-dev:amd64 2
  Added binutils:amd64 to the remove list
  Fixing dpkg-dev:amd64 via keep of binutils:amd64
Investigating (1) gcc-4.9-arm-linux-gnueabihf [ amd64 ] < 4.9.2-10 > ( devel )
Broken gcc-4.9-arm-linux-gnueabihf:amd64 Depends on binutils-arm-linux-gnueabihf [ amd64 ] < 2.25-5 > ( devel ) (>= 2.25)
  Considering binutils-arm-linux-gnueabihf:amd64 1 as a solution to gcc-4.9-arm-linux-gnueabihf:amd64 2
  Added binutils-arm-linux-gnueabihf:amd64 to the remove list
  Fixing gcc-4.9-arm-linux-gnueabihf:amd64 via keep of binutils-arm-linux-gnueabihf:amd64
Investigating (1) binutils [ armhf ] < none -> 2.25-5+deb8u1 > ( devel )
Broken binutils:armhf Conflicts on binutils [ amd64 ] < 2.25-5+deb8u1 > ( devel )
  Considering binutils:amd64 1 as a solution to binutils:armhf 2
  Added binutils:amd64 to the remove list
  Fixing binutils:armhf via remove of binutils:amd64
Investigating (1) make [ amd64 ] < 4.0-8.1 > ( devel )
Broken make:amd64 Conflicts on make [ armhf ] < none -> 4.0-8.1 > ( devel )
  Considering make:armhf 0 as a solution to make:amd64 1
  Added make:armhf to the remove list
  Fixing make:amd64 via keep of make:armhf
Investigating (1) binutils-arm-linux-gnueabihf [ amd64 ] < 2.25-5 > ( devel )
Broken binutils-arm-linux-gnueabihf:amd64 Depends on binutils [ amd64 ] < 2.25-5+deb8u1 > ( devel )
  Considering binutils:amd64 1 as a solution to binutils-arm-linux-gnueabihf:amd64 1
  Removing binutils-arm-linux-gnueabihf:amd64 rather than change binutils:amd64
Investigating (2) build-essential [ armhf ] < none -> 11.7 > ( devel )
Broken build-essential:armhf Depends on make [ armhf ] < none -> 4.0-8.1 > ( devel )
  Considering make:armhf 0 as a solution to build-essential:armhf 9999
  Considering make-guile:armhf -1 as a solution to build-essential:armhf 9999
  Re-Instated libgc1c2:armhf
  Re-Instated libltdl7:armhf
  Re-Instated libtinfo5:armhf
  Re-Instated libncurses5:armhf
  Re-Instated libreadline6:armhf
  Re-Instated libunistring0:armhf
  Re-Instated guile-2.0-libs:armhf
  Re-Instated make-guile:armhf
Investigating (2) dpkg-dev [ amd64 ] < 1.17.27 > ( utils )
Broken dpkg-dev:amd64 Depends on binutils [ amd64 ] < 2.25-5+deb8u1 > ( devel )
  Considering binutils:amd64 1 as a solution to dpkg-dev:amd64 2
  Added binutils:amd64 to the remove list
  Fixing dpkg-dev:amd64 via keep of binutils:amd64
Investigating (2) gcc-4.9-arm-linux-gnueabihf [ amd64 ] < 4.9.2-10 > ( devel )
Broken gcc-4.9-arm-linux-gnueabihf:amd64 Depends on binutils-arm-linux-gnueabihf [ amd64 ] < 2.25-5 > ( devel ) (>= 2.25)
  Considering binutils-arm-linux-gnueabihf:amd64 1 as a solution to gcc-4.9-arm-linux-gnueabihf:amd64 2
  Added binutils-arm-linux-gnueabihf:amd64 to the remove list
  Fixing gcc-4.9-arm-linux-gnueabihf:amd64 via keep of binutils-arm-linux-gnueabihf:amd64
Investigating (2) binutils [ armhf ] < none -> 2.25-5+deb8u1 > ( devel )
Broken binutils:armhf Conflicts on binutils [ amd64 ] < 2.25-5+deb8u1 > ( devel )
  Considering binutils:amd64 2 as a solution to binutils:armhf 2
  Holding Back binutils:armhf rather than change binutils:amd64
Investigating (2) make [ amd64 ] < 4.0-8.1 > ( devel )
Broken make:amd64 Conflicts on make-guile [ armhf ] < none -> 4.0-8.1 > ( devel )
  Considering make-guile:armhf -1 as a solution to make:amd64 1
  Added make-guile:armhf to the remove list
  Fixing make:amd64 via keep of make-guile:armhf
Investigating (3) build-essential [ armhf ] < none -> 11.7 > ( devel )
Broken build-essential:armhf Depends on make [ armhf ] < none -> 4.0-8.1 > ( devel )
  Considering make:armhf 0 as a solution to build-essential:armhf 9999
  Considering make-guile:armhf 1 as a solution to build-essential:armhf 9999
Investigating (3) gcc-4.9 [ armhf ] < none -> 4.9.2-10 > ( devel )
Broken gcc-4.9:armhf Depends on binutils [ armhf ] < none -> 2.25-5+deb8u1 > ( devel ) (>= 2.25)
  Considering binutils:armhf 2 as a solution to gcc-4.9:armhf 3
  Holding Back gcc-4.9:armhf rather than change binutils:armhf
Investigating (3) gcc [ armhf ] < none -> 4:4.9.2-2 > ( devel )
Broken gcc:armhf Depends on gcc-4.9 [ armhf ] < none -> 4.9.2-10 > ( devel ) (>= 4.9.2-1~)
  Considering gcc-4.9:armhf 3 as a solution to gcc:armhf 1
  Holding Back gcc:armhf rather than change gcc-4.9:armhf
Investigating (3) g++ [ armhf ] < none -> 4:4.9.2-2 > ( devel )
Broken g++:armhf Depends on gcc [ armhf ] < none -> 4:4.9.2-2 > ( devel ) (>= 4:4.9.2-2)
  Considering gcc:armhf 1 as a solution to g++:armhf 0
  Holding Back g++:armhf rather than change gcc:armhf
Investigating (3) g++-4.9 [ armhf ] < none -> 4.9.2-10 > ( devel )
Broken g++-4.9:armhf Depends on gcc-4.9 [ armhf ] < none -> 4.9.2-10 > ( devel ) (= 4.9.2-10)
  Considering gcc-4.9:armhf 3 as a solution to g++-4.9:armhf 0
  Holding Back g++-4.9:armhf rather than change gcc-4.9:armhf
Investigating (4) build-essential [ armhf ] < none -> 11.7 > ( devel )
Broken build-essential:armhf Depends on gcc [ armhf ] < none -> 4:4.9.2-2 > ( devel ) (>= 4:4.9.1)
  Considering gcc:armhf 1 as a solution to build-essential:armhf 9999
  Re-Instated binutils:armhf
  Re-Instated gcc-4.9:armhf
  Re-Instated gcc:armhf
Broken build-essential:armhf Depends on g++ [ armhf ] < none -> 4:4.9.2-2 > ( devel ) (>= 4:4.9.1)
  Considering g++:armhf 0 as a solution to build-essential:armhf 9999
  Re-Instated g++-4.9:armhf
  Re-Instated g++:armhf
Broken build-essential:armhf Depends on make [ armhf ] < none -> 4.0-8.1 > ( devel )
  Considering make:armhf 0 as a solution to build-essential:armhf 9999
  Considering make-guile:armhf 1 as a solution to build-essential:armhf 9999
Investigating (4) binutils [ armhf ] < none -> 2.25-5+deb8u1 > ( devel )
Broken binutils:armhf Conflicts on binutils [ amd64 ] < 2.25-5+deb8u1 > ( devel )
  Considering binutils:amd64 2 as a solution to binutils:armhf 2
  Holding Back binutils:armhf rather than change binutils:amd64
Investigating (5) build-essential [ armhf ] < none -> 11.7 > ( devel )
Broken build-essential:armhf Depends on make [ armhf ] < none -> 4.0-8.1 > ( devel )
  Considering make:armhf 0 as a solution to build-essential:armhf 9999
  Considering make-guile:armhf 1 as a solution to build-essential:armhf 9999
Investigating (5) gcc-4.9 [ armhf ] < none -> 4.9.2-10 > ( devel )
Broken gcc-4.9:armhf Depends on binutils [ armhf ] < none -> 2.25-5+deb8u1 > ( devel ) (>= 2.25)
  Considering binutils:armhf 2 as a solution to gcc-4.9:armhf 3
  Holding Back gcc-4.9:armhf rather than change binutils:armhf
Investigating (5) gcc [ armhf ] < none -> 4:4.9.2-2 > ( devel )
Broken gcc:armhf Depends on gcc-4.9 [ armhf ] < none -> 4.9.2-10 > ( devel ) (>= 4.9.2-1~)
  Considering gcc-4.9:armhf 3 as a solution to gcc:armhf 1
  Holding Back gcc:armhf rather than change gcc-4.9:armhf
Investigating (5) g++ [ armhf ] < none -> 4:4.9.2-2 > ( devel )
Broken g++:armhf Depends on gcc [ armhf ] < none -> 4:4.9.2-2 > ( devel ) (>= 4:4.9.2-2)
  Considering gcc:armhf 1 as a solution to g++:armhf 0
  Holding Back g++:armhf rather than change gcc:armhf
Investigating (5) g++-4.9 [ armhf ] < none -> 4.9.2-10 > ( devel )
Broken g++-4.9:armhf Depends on gcc-4.9 [ armhf ] < none -> 4.9.2-10 > ( devel ) (= 4.9.2-10)
  Considering gcc-4.9:armhf 3 as a solution to g++-4.9:armhf 0
  Holding Back g++-4.9:armhf rather than change gcc-4.9:armhf
Investigating (6) build-essential [ armhf ] < none -> 11.7 > ( devel )
Broken build-essential:armhf Depends on gcc [ armhf ] < none -> 4:4.9.2-2 > ( devel ) (>= 4:4.9.1)
  Considering gcc:armhf 1 as a solution to build-essential:armhf 9999
Broken build-essential:armhf Depends on g++ [ armhf ] < none -> 4:4.9.2-2 > ( devel ) (>= 4:4.9.1)
  Considering g++:armhf 0 as a solution to build-essential:armhf 9999
Broken build-essential:armhf Depends on make [ armhf ] < none -> 4.0-8.1 > ( devel )
  Considering make:armhf 0 as a solution to build-essential:armhf 9999
  Considering make-guile:armhf 1 as a solution to build-essential:armhf 9999
Done


Get this bounty!!!

#StackBounty: #debian #keyboard-shortcuts #keyboard #mouse #xbindkeys xbindkeys (xvkbd): stuck CTRL with Debian Stretch

Bounty: 50

I am using xbindkeys with xvkbd to add some magic to additional buttons on my mouse which I can press with my thumb. For this, I have xbindkeys in my ~/.xsessionrc and the following lines in ~/.xbindkeysrc:

"xvkbd -text "[Control][Prior]""
    m:0x0 + b:15
"xvkbd -text "[Control][Next]""
    m:0x0 + b:13
"xvkbd -text "[Control]t""
    m:0x0 + b:17

This setup was working perfectly for the past two years. After the upgrade from Debian Jessie to Debian Stretch I noticed that the control key sometimes appears to be still pressed after using the mouse button once. As a result, every key action x behaves as Ctrl+x. This also causes the mouse buttons to not work as expected.

  • Debian 9 Stretch, amd64
  • xbindkeys 1.8.6-1+b1
  • xvkbd 3.3-1+b1
  • Mate + xmonad


Get this bounty!!!

#StackBounty: #debian #apt #firewall #ufw Why Linux firewall GUI Gufw not in Debian window-key search?

Bounty: 50

The guide recommends the Gufw firewall GUI.
I installed it by apt

gufw/oldstable,oldstable,now 12.10.0-1 all [installed]
  graphical user interface for ufw

Typing ẁindow key + gufw, I cannot see the application.
Only access is through terminal by gufw which is not enough.
I am thinking why so + how to fix the issue because I am systematically using too little firewall in Linux.

Installation and testing the packages installed

  1. Studying the package masi@masi:$ apt search gufw
    Sorting... Done
    Full Text Search... Done
    gufw/oldstable,oldstable,now 12.10.0-1 all [installed]
      graphical user interface for ufw
    
  2. Installation by method apt install gufw

  3. Output of apt show -a gufw where I am thinking about two packages (17.04 and 12.10) so something conflicting in my system – for some reason gufw in terminal starts gufw 12.10
    Package: gufw
    Source: gui-ufw
    Version: 17.04.1-1.1
    Installed-Size: 3,376 kB
    Maintainer: Python Applications Packaging Team <python-apps-team@lists.alioth.debian.org>
    Depends: python3:any (>= 3.3.2-2~), ufw (>= 0.34~rc), gir1.2-gtk-3.0, policykit-1, gir1.2-webkit2-4.0, python3-gi, net-tools
    Homepage: http://gufw.org/
    Tag: admin::configuring, implemented-in::python, interface::graphical,
     interface::x11, network::firewall, role::program, scope::utility,
     security::firewall, uitoolkit::gtk, use::configuring, x11::application
    Section: admin
    Priority: optional
    Download-Size: 842 kB
    APT-Sources: http://ftp.fr.debian.org/debian/ unstable/main amd64 Packages
    
    Package: gufw
    Source: gui-ufw
    Version: 12.10.0-1
    Installed-Size: 1,328 kB
    Maintainer: Devid Antonio Filoni <d.filoni@ubuntu.com>
    Depends: python (>= 2.6.6-7~), ufw (>= 0.31.1), gir1.2-gtk-3.0, gir1.2-polkit-1.0, notify-osd | notification-daemon, policykit-1, python-dbus, python-gobject, gnome-icon-theme-symbolic
    Homepage: https://launchpad.net/gui-ufw
    Tag: admin::configuring, implemented-in::python, interface::x11,
     network::firewall, role::program, scope::utility, security::firewall,
     uitoolkit::gtk, use::configuring, x11::application
    Section: admin
    Priority: optional
    Download-Size: 261 kB
    APT-Manual-Installed: yes
    APT-Sources: http://ftp.fi.debian.org/debian/ jessie/main amd64 Packages
    
  4. Output of apt-cache policy gufw
    gufw:
      Installed: 12.10.0-1
      Candidate: 12.10.0-1
      Version table:
          17.04.1-1.1 0
            200 http://ftp.fr.debian.org/debian/ unstable/main amd64 Packages
      *** 12.10.0-1 0
            500 http://ftp.fi.debian.org/debian/ jessie/main amd64 Packages
            500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages
            100 /var/lib/dpkg/status
    
  5. Output of dpkg -l gufw
     Desired=Unknown/Install/Remove/Purge/Hold
     | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
     |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
     ||/ Name                            Version              Architecture         Description
      +++-===============================-====================-====================-====================================================================
     ii  gufw                            12.10.0-1            all                  graphical user interface for ufw
    

OS: Debian 8.7
Related bug: gufw: desktop entry doesn’t show up in desktop environments


Get this bounty!!!

#StackBounty: #debian #command-line #apt #ppa Problem adding ppa's in Deepin OS 15.4

Bounty: 50

I am running Deepin OS 15.4, which is based on Debian unstable.

When I type:

sudo add-apt-repository ppa:nilarimogard/webupd8

I get:

gpg: keybox '/tmp/tmpeel0gwwr/pubring.gpg' created
gpg: /tmp/tmpeel0gwwr/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.

Extension:

After installing gnupg2 and running the other command, I get:

gpg: keybox '/tmp/tmpiyqhvqsc/pubring.gpg' created
gpg: /tmp/tmpiyqhvqsc/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func
    func(**kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
    return apsk.add_ppa_signing_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 273, in add_ppa_signing_key
    cleanup(tmp_keyring_dir)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in cleanup
    shutil.rmtree(tmp_keyring_dir)
  File "/usr/lib/python3.5/shutil.py", line 474, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.ssh'  

Extension:

Now after running the two mentioned commands it gives me the first error again.


Get this bounty!!!

#StackBounty: #debian #command-line #apt #ppa Problem adding ppa's in Deepin OS 15.4

Bounty: 50

I am running Deepin OS 15.4, which is based on Debian unstable.

When I type:

sudo add-apt-repository ppa:nilarimogard/webupd8

I get:

gpg: keybox '/tmp/tmpeel0gwwr/pubring.gpg' created
gpg: /tmp/tmpeel0gwwr/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.

Extension:

After installing gnupg2 and running the other command, I get:

gpg: keybox '/tmp/tmpiyqhvqsc/pubring.gpg' created
gpg: /tmp/tmpiyqhvqsc/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func
    func(**kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
    return apsk.add_ppa_signing_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 273, in add_ppa_signing_key
    cleanup(tmp_keyring_dir)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in cleanup
    shutil.rmtree(tmp_keyring_dir)
  File "/usr/lib/python3.5/shutil.py", line 474, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.ssh'  

Extension:

Now after running the two mentioned commands it gives me the first error again.


Get this bounty!!!

#StackBounty: #debian #command-line #apt #ppa Problem adding ppa's in Deepin OS 15.4

Bounty: 50

I am running Deepin OS 15.4, which is based on Debian unstable.

When I type:

sudo add-apt-repository ppa:nilarimogard/webupd8

I get:

gpg: keybox '/tmp/tmpeel0gwwr/pubring.gpg' created
gpg: /tmp/tmpeel0gwwr/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.

Extension:

After installing gnupg2 and running the other command, I get:

gpg: keybox '/tmp/tmpiyqhvqsc/pubring.gpg' created
gpg: /tmp/tmpiyqhvqsc/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func
    func(**kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
    return apsk.add_ppa_signing_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 273, in add_ppa_signing_key
    cleanup(tmp_keyring_dir)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in cleanup
    shutil.rmtree(tmp_keyring_dir)
  File "/usr/lib/python3.5/shutil.py", line 474, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.ssh'  

Extension:

Now after running the two mentioned commands it gives me the first error again.


Get this bounty!!!

#StackBounty: #debian #command-line #apt #ppa Problem adding ppa's in Deepin OS 15.4

Bounty: 50

I am running Deepin OS 15.4, which is based on Debian unstable.

When I type:

sudo add-apt-repository ppa:nilarimogard/webupd8

I get:

gpg: keybox '/tmp/tmpeel0gwwr/pubring.gpg' created
gpg: /tmp/tmpeel0gwwr/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.

Extension:

After installing gnupg2 and running the other command, I get:

gpg: keybox '/tmp/tmpiyqhvqsc/pubring.gpg' created
gpg: /tmp/tmpiyqhvqsc/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func
    func(**kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
    return apsk.add_ppa_signing_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 273, in add_ppa_signing_key
    cleanup(tmp_keyring_dir)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in cleanup
    shutil.rmtree(tmp_keyring_dir)
  File "/usr/lib/python3.5/shutil.py", line 474, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.ssh'  

Extension:

Now after running the two mentioned commands it gives me the first error again.


Get this bounty!!!

#StackBounty: #debian #command-line #apt #ppa Problem adding ppa's in Deepin OS 15.4

Bounty: 50

I am running Deepin OS 15.4, which is based on Debian unstable.

When I type:

sudo add-apt-repository ppa:nilarimogard/webupd8

I get:

gpg: keybox '/tmp/tmpeel0gwwr/pubring.gpg' created
gpg: /tmp/tmpeel0gwwr/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.

Extension:

After installing gnupg2 and running the other command, I get:

gpg: keybox '/tmp/tmpiyqhvqsc/pubring.gpg' created
gpg: /tmp/tmpiyqhvqsc/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func
    func(**kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
    return apsk.add_ppa_signing_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 273, in add_ppa_signing_key
    cleanup(tmp_keyring_dir)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in cleanup
    shutil.rmtree(tmp_keyring_dir)
  File "/usr/lib/python3.5/shutil.py", line 474, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.ssh'  

Extension:

Now after running the two mentioned commands it gives me the first error again.


Get this bounty!!!