XenialDog (Ubuntu 16.04 'Xenial Xerus' LTS, 32-bit)

A home for all kinds of Puppy related projects
Message
Author
keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#861 Post by keniv »

Hello All,
I have installed Xenial Dog (32bit) to an ntfs partition on one hdd on an old HP desktop. I also have three pups on this partition all frugal installs. I also have Ubuntu installed on an ext4 partition on a separate hdd, full install, and am booting from this one with grub2. I've gone through all the problems already mentioned in booting the pups the the dog with grub2 but all are now working. I'm more used to grub4dos. Also had problems with frisbee but changed to wicd and it works fine. I have gqrx, which is a software defined radio application, installed and working on Ubuntu but I cannot get it to work in Xenial Dog. I have tried two installation methods.

1. I've used the package manager. This was easy and all seemed to go well but it does not load from it's menu entry. I get this output if I run it in a terminal.

Code: Select all

root@xenial:~# gqrx
linux; GNU C++ version 5.3.1 20151219; Boost_105800; UHD_003.009.002-0-unknown

Controlport disabled
No user supplied config file. Using "default.conf"
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.9
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy redpitaya 
Using Volk machine: sse2_32_mmx_orc
FM demod gain: 1.52789
IQ DCR alpha: 1.04166e-05
/build/gqrx-sdr-3kG_Pj/gqrx-sdr-2.5.1/src/pulseaudio/pa_sink.cc: pa_simple_new() failed: Connection refused
Using audio backend: N/A
New filter offset: 0 Hz
BookmarksFile is /root/.config/gqrx/bookmarks.csv
Loading configuration from: "default.conf"
Configuration file: "/root/.config/gqrx/default.conf"
Crash guard triggered! 
The image gqrx2(see attached) also appears. If I click on this I get this output.

Code: Select all

Launching I/O device editor
firstTimeConfig
CIoConfig : Available input devices:
    0 : "Realtek RTL2838UHIDIR SN: 00000001"
    1 : "RFSPACE SDR-IQ Receiver"
    2 : "RFSPACE SDR-IP Receiver"
    3 : "RFSPACE NetSDR Receiver"
    4 : "RFSPACE Cloud-IQ Receiver"
    5 : "RTL-SDR Spectrum Server"
    6 : "Red Pitaya Transceiver Server"
    7 : "Complex Sampled (IQ) File"
My device is marked as '0' here but I can't choose it. When I try I can type '0' but the cursor only moves to the next line.

2. This second method is the one I used to install in Ubuntu. The instructions are here.

http://gqrx.dk/download/install-ubuntu

However, I have to install these repositories first then update.

Code: Select all

sudo add-apt-repository -y ppa:bladerf/bladerf
sudo add-apt-repository -y ppa:ettusresearch/uhd
sudo add-apt-repository -y ppa:myriadrf/drivers
sudo add-apt-repository -y ppa:myriadrf/gnuradio
sudo add-apt-repository -y ppa:gqrx/gqrx-sdr
sudo apt-get update
I've tried this without the sudo but get this output for the first of the above. The others give similar outputs.

Code: Select all

root@xenial:~# add-apt-repository -y ppa:bladerf/bladerf
Utility to add Ubuntu PPA in your Debian machine
usage: sudo add-apt-repository ppa:user/ppa-name [ubuntu_release]
e.g.:  sudo add-apt-repository ppa:rvm/smplayer trusty
If no Ubuntu release is given, the default will be 'xenial'
root@xenial:~# 
You may have guessed by now that I know very little about Ubuntu and this carries over into Xenial Dog. I expect I could add these repositories if I knew how. If anybody can give me any help with one, other or both of these methods I'd be much obliged.

Regards,

Ken.
Attachments
gqrx2.jpg
(13.38 KiB) Downloaded 988 times

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#862 Post by fredx181 »

Hi keniv, I replied in Xenialdog64 thread.
http://murga-linux.com/puppy/viewtopic. ... 046#979046

Fred

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#863 Post by keniv »

Sorry Fred,
I realised I'd put it in the wrong thread so I removed it, left an explanation as to why, and moved it here. I'll look at your reply now and reply here if that's OK.

Regards,

Ken.

Thanks for the information Fred. I'll try using this method of installing as it works with Ubuntu. I'll report back on how I get on. I do like your Dog. As am not familiar with Ubuntu and Xenial Dog has a bit of the pup about it like running as root it helps. It also boots up faster than Ubuntu.

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#864 Post by keniv »

Hi Fred,
All of the repositories added and updated and gqrx installed. However, when I ran it from the menu I got whats shown in gqrxd.jpg (attached). When I ran it in a terminal I got this.

Code: Select all

root@xenial:~# gqrx
linux; GNU C++ version 5.4.0 20160609; Boost_105800; UHD_003.010.002.000-release

Controlport disabled
"Pulseaudio error: Connection refused"
The box in gqrxd.jpg also appeared again.

On checking the package manager I seem to have pulse audio installed though not all of it. Is there a way to find out if I am missing anything from Pulseaudio that is required. If it requires the command line can you give me details please. I have limited skills here.

Regards,

Ken.

Edit. I've added the of/root/.config/gqrx/default.conf bellow.

Code: Select all

[General]
configversion=1

[audio]
gain=171
udp_host=localhost

[fft]
split=23

[gui]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\0\0\0\0\0\0\0\x18\0\0\x4\xff\0\0\x3\xe7\0\0\0\xa4\0\0\0\x90\0\0\x4Y\0\0\x3+\0\0\0\0\x2\0\0\0\x5\0)
state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\x1\0\0\x1j\0\0\x3]\xfc\x2\0\0\0\x2\xfc\0\0\0\x41\0\0\x2.\0\0\x1w\0\b\0\x1d\xfa\0\0\0\x1\x2\0\0\0\x3\xfb\0\0\0\x18\0\x44\0o\0\x63\0k\0I\0n\0p\0u\0t\0\x43\0t\0l\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xf9\0\xff\xff\xff\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0R\0x\0O\0p\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1Y\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0\x46\0\x66\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\a\xff\xff\xfc\0\0\x2u\0\0\x1)\0\0\0\xc8\0\xff\xff\xff\xfa\0\0\0\0\x2\0\0\0\x2\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0\x41\0u\0\x64\0i\0o\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\xff\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0R\0\x44\0S\0\0\0\0\0\xff\xff\xff\xff\0\0\0h\0\xff\xff\xff\0\0\0\x3\0\0\0\0\0\0\0\0\xfc\x1\0\0\0\x1\xfb\0\0\0\x1a\0\x44\0o\0\x63\0k\0\x42\0o\0o\0k\0m\0\x61\0r\0k\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\x1\x42\0\xff\xff\xff\0\0\x3\x90\0\0\x3]\0\0\0\x1\0\0\0\x2\0\0\0\b\0\0\0\x2\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0)

[input]
device="rtl=0"
frequency=89899000
sample_rate=1800000

[output]
device=alsa_output.pci-0000_00_1f.5.analog-stereo

[receiver]
agc_decay=100
demod=4
filter_high_cut=80000
filter_low_cut=-80000
fm_deemph=74
offset=91000

[remote_control]
allowed_hosts=::ffff:127.0.0.1
It appears to be using alsa on ubuntu so I'm now not sure what pulseaudio error is about.
Attachments
gqrxd.jpg
(7.75 KiB) Downloaded 955 times

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#865 Post by fredx181 »

Hi Ken, pulseaudio as root can be problematic, maybe try to start it first before running gqrx ?

Code: Select all

pulseaudio --start 
(you may get a warning about running as root, but might run ok if just a warning (not error) )
Or:

Code: Select all

pulseaudio --system 
I'm not on Xenialdog now, so just guessing...

Fred

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#866 Post by keniv »

Hi Fred,
It's working! With Pulseaudio --Start I did get a warning telling me it was not designed to work as root and it did not start. With Pulseaudio --System it did give me many warnings which amounted to 'on your own head be it' but it did start and so did gqrx allowing me to chose my device. The sound quality is not great but I think that has more to do with the quality and positioning of the antenna I'm using. It is as good as the quality with Ubuntu using the same antenna. Thanks for all your help with this.

Regards,

Ken.

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#867 Post by keniv »

Hello Fred,
I'm sorry to bother you with this again.
pulseaudio as root can be problematic
I am having lots of inconsistencies with the installed pulse audio. If I try to load it with

Code: Select all

pulseaudio --system
sometimes it loads and sometimes it appears not to. This is confirmed by getting a pulseaudio error when running gqrx and

Code: Select all

pulseaudio --check
I remembered reading on the forum that some later versions of firefox needed pulse audio so I thought there might be some pets made to run as root. I downloaded three. They did not install but could be converted to a .sfs. The best of these was Pulseaudio-2.1-up-20121014.pet.sfs. I can get this to load on the fly but unlike puppy there are no menu entries. I have to mount the .sfs then find the boot script them click on that. This does work and this version of pulseaudio loads consistently, without any moans and gqrx also works. As this was a bit of a fiddle I tried to write a .desktop entry to start pulseaudio. I called it Pulse Start.desktop and put it in

Code: Select all

 /usr/share/applications
but cannot get it to work though it does give a menu entry. I've attached it.

Code: Select all

[Desktop Entry]
Name=Pulse Start
Type=Application
Exec=/mnt/live/mnt/sdb1/mnt/pulseaudio-2.1-up-20121014.pet.sfs/usr/bin/start-pulseaudio-x11
Icon=/usr/share/icons/hicolor/48x48/mimetypes/display.png
Terminal=false
Categories=Network;WebBrowser;Internet;
I have tried various versions of the Exec=xxxxxxxxxxx part of this but cannot get it to work. I am sure there must be a way to do this but I cannot find it. I am also not sure whether I should see a menu entry, like in puppy, when I load the .sfs on the fly. Again I'd appreciate your help with this.

Regards,

Ken.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#868 Post by fredx181 »

Hi Ken,
I am having lots of inconsistencies with the installed pulse audio. If I try to load it with
Code:
pulseaudio --system
Are you sure "pulseaudio --start" doesn't work ?
Sound works fine for me then (ignored the warning), also see attached alsamixer pic below.
EDIT: you may need to kill it first "pulseaudio --kill"

Fred
Attachments
xendog-20180104191657.jpg
after running "pulseaudio --start"
(19.16 KiB) Downloaded 890 times

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#869 Post by keniv »

Hi Fred,
This is what I get after first starting with

Code: Select all

pulseaudio --kill
then

Code: Select all

pulseaudio --start

Code: Select all

root@xenial:~# pulseaudio --kill
E: [pulseaudio] main.c: Failed to kill daemon: No such process
root@xenial:~# pulseaudio --start
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
root@xenial:~# pulseaudio --kill
root@xenial:~# pulseaudio --start
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
root@xenial:~# 
I've attached the output of the alsagui. I cannot adjust the level of "capture" which appears to be at zero. Every thing else is adjustable so I expect "capture should be. gqrx does work though. If this continues to be OK I'll get rid of the .pet .sfs.

Regards,

Ken.
Attachments
xendog-alsagui.jpg
(15.74 KiB) Downloaded 849 times

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#870 Post by fredx181 »

Hi Ken, I'd say just use the installed pulseaudio with the --start option (not from the sfs).
The reason I wrote you might need to do "pulseaudio --kill" is in case it was already active with earlier --system attempts.

Maybe try just this in your .desktop launcher.

Code: Select all

Exec=pulseaudio --start
No idea why you can't adjust the "capture"

Fred

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#871 Post by keniv »

Hi Fred,
Thanks again for the help. I've now made a menu entry that starts pulseaudio, pauses for 10 secs, then starts gqrx.

Code: Select all

[Desktop Entry]
Name=Gqrx Start
Type=Application
Exec=/root/My-Applications/bin/gqrx
Icon=/usr/share/icons/hicolor/scalable/apps/gqrx.svg
Terminal=false
Categories=AudioVideo;Audio;Video;Player;TV;
Keywords=SDR;Radio;HAM;
I had to make a little script, called it gqrx, made it executable and put it in /root/My-Applications/bin. You might recognise a puppy user showing through here.

Code: Select all

#!/bin/bash
pulseaudio --start
read -t 10 -p
gqrx
I don't know if this is the best way to do it but it works. I might experiment a bit with the 10secs as it's probably to long.

Regards,

Ken.

User avatar
Max Headroom
Posts: 421
Joined: Wed 28 Jun 2006, 07:17
Location: GodZone Kiwi
Contact:

#872 Post by Max Headroom »

G'day Fred, Happy 2018, ( Perhaps Even More if yoU'Re a Hacker Who could eXploit Meltdown or Spectre ! ) ! So could yoU Please Advize How Meltdown-Proof & Spectre-Proof this XenialDog ( Ubuntu 16.04 'Xenial Xerus' LTS, 32-bit) is? Looks like it's Running 4.4.0.78 Ke*nel According 2 Conky & I've Checked in Synaptic Package Manager 4 Any Ke*nel Updates, Nuthing....

No Worries then?!?

:)K
PC is Not Political Correctness :P , it's a Personal Computer! Boycott the Evil M$ & Google!

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#873 Post by fredx181 »

Max Headroom wrote:G'day Fred, Happy 2018, ( Perhaps Even More if yoU'Re a Hacker Who could eXploit Meltdown or Spectre ! ) ! So could yoU Please Advize How Meltdown-Proof & Spectre-Proof this XenialDog ( Ubuntu 16.04 'Xenial Xerus' LTS, 32-bit) is? Looks like it's Running 4.4.0.78 Ke*nel According 2 Conky & I've Checked in Synaptic Package Manager 4 Any Ke*nel Updates, Nuthing....

No Worries then?!?

:)K
Hi Max, happy 2018 too !!, all I can say is that there's a patch for Meltdown in latest 4.4.0 kernel release, they say.
So on a frugal install only (not when boot from cd or with isobooter) you can run from Menu > System > Upgrade-Kernel and it will update to version 4.4.0-109, so then after reboot with save it would be:

Code: Select all

root@xenial:~# uname -a
Linux xenial 4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:07 UTC 2018 i686 i686 i686 GNU/Linux
For the rest I cannot advice because my knowledge is too little about these matters.

Fred

backi
Posts: 1922
Joined: Sun 27 Feb 2011, 22:00
Location: GERMANY

#874 Post by backi »

Hi

Now using Kernel 4.4.0-59-generic .
Tried to upgrade kernel with installed Upgrade-Programm .
No success :

dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-4.4.0-112-generic
linux-image-extra-4.4.0-112-generic
linux-image-generic
W: Can't drop privileges for downloading as file '/var/cache/apt/archives/partial/linux-image-4.4.0-112-generic_4.4.0-112.135_i386.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Sub-process /usr/bin/dpkg returned an error code (1)
Nothing has been installed or something unexpected occurred
Will restore back to previous state now..
Press any key to close . . .

Any Ideas ?

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#875 Post by keniv »

Hello Fred,
I also got an error message when trying to update the kernel using the method you suggested above. However, it disappears off of the screen too quickly to copy it as a screen capture.

Regards,

Ken.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#876 Post by fredx181 »

Hi backi, keniv,

Strange..., can't reproduce the error. I just upgraded kernel with upgrade-kernel from 4.4.0-59 to 4.4.0-112 without problems.
backi wrote:W: Can't drop privileges for downloading as file '/var/cache/apt/archives/partial/linux-image-4.4.0-112-generic_4.4.0-112.135_i386.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
Looks like a gereral dpkg (permission?) problem, are you able to install other packages with apt-get ?
@ken, can you try again and run from terminal instead from menu:

Code: Select all

upgrade-kernel
And paste the error part here ?

And can you both check the output of:

Code: Select all

ls -l /var/cache/apt/archives/ | grep partial
it should be owned by "_apt", e.g. :
drwx------ 2 _apt root 4096 jan 20 16:14 partial

Fred

backi
Posts: 1922
Joined: Sun 27 Feb 2011, 22:00
Location: GERMANY

#877 Post by backi »

Hi Fred !
This is the complete Terminal Output when doing "upgrade-Kernel".
root@xenial:~# upgrade-kernel
What this script does is:
- Upgrade the kernel (linux-image-generic) that's in use (if there is an update available)
- Upgrade the initrd and vmlinuz files inside /mnt/sdb1//XENIALDOG1/casper
(and create backup of the older ones to *.bak)
Note: this only works when frugally installed, not from read-only media e.g CD
Also, this script assumes that the initrd and vmlinuz files are
located in the same folder as the main filesystem.squashfs, e.g. in 'casper'
Press ENTER to continue

Remove pinned entries for package linux-image-*
OK
Update the package lists . . .
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:2 http://archive.canonical.com/ubuntu xenial InRelease
Hit:3 http://nl.archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://nl.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:5 http://nl.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:6 https://debiandog.github.io/xenialdog/Packages ./ InRelease
Fetched 102 kB in 1s (60.9 kB/s)
Reading package lists... Done
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 171 not upgraded.
3 not fully installed or removed.
Need to get 0 B/42.1 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 49126 files and directories currently installed.)
Preparing to unpack .../casper_1%3a1.373_i386.deb ...
Unpacking casper (1:1.373) over (1:1.373) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up linux-image-4.4.0-112-generic (4.4.0-112.135) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-112-generic
vmlinuz(/boot/vmlinuz-4.4.0-112-generic
) points to /boot/vmlinuz-4.4.0-112-generic
(/boot/vmlinuz-4.4.0-112-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.4.0-112-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-112-generic
mktemp: failed to create directory via template ‘/var/tmp/mkinitramfs_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-4.4.0-112-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-112-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-112-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-112-generic:
linux-image-extra-4.4.0-112-generic depends on linux-image-4.4.0-112-generic; however:
Package linux-image-4.4.0-112-generic is not configured yet.

dpkg: error processing package linux-image-extra-4.4.0-112-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-4.4.0-112-generic; however:
Package linux-image-4.4.0-112-generic is not configured yet.
linux-image-generic depends on linux-image-extra-4.4.0-112-generic; however:
Package linux-image-extra-4.4.0-112-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
Setting up casper (1:1.373) ...
update-initramfs: deferring update (trigger activated)
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Processing triggers for initramfs-tools (0.122ubuntu8.8) ...
/boot/initrd.img-4.4.0-59-generic does not exist. Cannot update.
Errors were encountered while processing:
linux-image-4.4.0-112-generic
linux-image-extra-4.4.0-112-generic
linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists...
Building dependency tree...
Reading state information...
linux-image-generic is already the newest version (4.4.0.112.118).
0 upgraded, 0 newly installed, 0 to remove and 171 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-4.4.0-112-generic (4.4.0-112.135) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.4.0-112-generic
vmlinuz(/boot/vmlinuz-4.4.0-112-generic
) points to /boot/vmlinuz-4.4.0-112-generic
(/boot/vmlinuz-4.4.0-112-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.4.0-112-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-112-generic
mktemp: failed to create directory via template ‘/var/tmp/mkinitramfs_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-4.4.0-112-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-112-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-112-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-112-generic:
linux-image-extra-4.4.0-112-generic depends on linux-image-4.4.0-112-generic; however:
Package linux-image-4.4.0-112-generic is not configured yet.

dpkg: error processing package linux-image-extra-4.4.0-112-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-4.4.0-112-generic; however:
Package linux-image-4.4.0-112-generic is not configured yet.
linux-image-generic depends on linux-image-extra-4.4.0-112-generic; however:
Package linux-image-extra-4.4.0-112-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-4.4.0-112-generic
linux-image-extra-4.4.0-112-generic
linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Nothing has been installed or something unexpected occurred
Will restore back to previous state now..
Press any key to close . . .

This when doing " ls -l /var/cache/apt/archives/ | grep partial"

root@xenial:~# ls -l /var/cache/apt/archives/ | grep partial
drwx------ 2 _apt root 40 Jan 24 13:38 partial

If it does mean anything casper Folder is located in a Folder named XENIALDOG located on a Usb-Stick

Regards !

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#878 Post by fredx181 »

Thanks backi,
Hmm.. complicated, I can give some things to try, but not sure if works as expected (but probably can't do any harm).
Something went wrong earlier, I guess, btw, the dpkg message in your previous post was different (mentioned about permission, which is correct now, looking at your ls -l output)

So, please try:

Code: Select all

rm -f /var/cache/apt/archives/partial/*  # remove what's left in partial (just in case there is)
apt-get purge linux-image-4.4.0-112-generic linux-image-extra-4.4.0-112-generic  # completely remove v4.4.0-112
upgrade-kernel
If the purge command above gives errors, don't run upgrade-kernel yet, you may try first "dpkg --configure -a":

Code: Select all

dpkg --configure -a
apt-get purge linux-image-4.4.0-112-generic linux-image-extra-4.4.0-112-generic
upgrade-kernel
Hope this helps.

EDIT: If you open Synaptic first before doing any of the above, does it give a message about broken packages ?
If it does, you can close Synaptic and try first:

Code: Select all

apt-get -f install
And then do the above commands (purging both linux-image-* packages is important, I think)

Fred

backi
Posts: 1922
Joined: Sun 27 Feb 2011, 22:00
Location: GERMANY

#879 Post by backi »

Hi Fred !

EDIT:
Step by Step :
1.Step :
root@xenial:~# rm -f /var/cache/apt/archives/partial/*
root@xenial:~# apt-get purge linux-image-4.4.0-112-generic linux-image-extra-4.4.0-112-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-image-4.4.0-112-generic* linux-image-extra-4.4.0-112-generic*
linux-image-generic*
0 upgraded, 0 newly installed, 3 to remove and 171 not upgraded.
3 not fully installed or removed.
After this operation, 162 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 49125 files and directories currently installed.)
Removing linux-image-generic (4.4.0.112.118) ...
Removing linux-image-extra-4.4.0-112-generic (4.4.0-112.135) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-112-generic
mktemp: failed to create directory via template ‘/var/tmp/mkinitramfs_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-4.4.0-112-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-112-generic (--purge):
subprocess installed post-removal script returned error exit status 1
Removing linux-image-4.4.0-112-generic (4.4.0-112.135) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
update-initramfs: Deleting /boot/initrd.img-4.4.0-112-generic
The link /vmlinuz is a damaged link
Removing symbolic link vmlinuz
you may need to re-run your boot loader[grub]
The link /initrd.img is a damaged link
Removing symbolic link initrd.img
you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-4.4.0-112-generic (4.4.0-112.135) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
Errors were encountered while processing:
linux-image-extra-4.4.0-112-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@xenial:~#


2.Step:
root@xenial:~# dpkg --configure -a

3.Step:

root@xenial:~# apt-get purge linux-image-4.4.0-112-generic linux-image-extra-4.4.0-112-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'linux-image-4.4.0-112-generic' is not installed, so not removed
The following packages will be REMOVED:
linux-image-extra-4.4.0-112-generic
0 upgraded, 0 newly installed, 1 to remove and 171 not upgraded.
1 not fully installed or removed.
After this operation, 113 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 43386 files and directories currently installed.)
Removing linux-image-extra-4.4.0-112-generic (4.4.0-112.135) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-112-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-112-generic
WARNING: missing /lib/modules/4.4.0-112-generic
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.4.0-112-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
mktemp: failed to create directory via template ‘/var/tmp/mkinitramfs_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-4.4.0-112-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-112-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-image-extra-4.4.0-112-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@xenial:~#


Step4:
ile or directory
update-initramfs: failed for /boot/initrd.img-4.4.0-112-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-112-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-image-extra-4.4.0-112-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@xenial:~# upgrade kernel
bash: upgrade: command not found
root@xenial:~# upgrade-kernel
What this script does is:
- Upgrade the kernel (linux-image-generic) that's in use (if there is an update available)
- Upgrade the initrd and vmlinuz files inside /mnt/sdb1//XENIALDOG1/casper
(and create backup of the older ones to *.bak)
Note: this only works when frugally installed, not from read-only media e.g CD
Also, this script assumes that the initrd and vmlinuz files are
located in the same folder as the main filesystem.squashfs, e.g. in 'casper'
Press ENTER to continue

Remove pinned entries for package linux-image-*
OK
Update the package lists . . .
Hit:1 http://archive.canonical.com/ubuntu xenial InRelease
Hit:2 http://nl.archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://nl.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:5 http://nl.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Hit:6 https://debiandog.github.io/xenialdog/Packages ./ InRelease
Get:7 http://nl.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [658 kB]
Get:8 http://nl.archive.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages [7,524 B]
Get:9 http://nl.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [536 kB]
Get:10 http://nl.archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [15.3 kB]
Fetched 1,523 kB in 2s (522 kB/s)
Reading package lists... Done
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
linux-image-extra-4.4.0-112-generic
0 upgraded, 0 newly installed, 1 reinstalled, 1 to remove and 171 not upgraded.
1 not fully installed or removed.
Need to get 0 B/42.1 kB of archives.
After this operation, 113 MB disk space will be freed.
(Reading database ... 43386 files and directories currently installed.)
Removing linux-image-extra-4.4.0-112-generic (4.4.0-112.135) ...
depmod: FATAL: could not load /boot/System.map-4.4.0-112-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-112-generic
WARNING: missing /lib/modules/4.4.0-112-generic
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.4.0-112-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
mktemp: failed to create directory via template ‘/var/tmp/mkinitramfs_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-4.4.0-112-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-112-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-image-extra-4.4.0-112-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
linux-image-4.4.0-112-generic
Suggested packages:
fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
linux-headers-4.4.0-112-generic
Recommended packages:
grub-pc | grub-efi-ia32 | grub | lilo thermald
The following NEW packages will be installed:
linux-image-4.4.0-112-generic linux-image-generic
0 upgraded, 2 newly installed, 0 to remove and 171 not upgraded.
1 not fully installed or removed.
Need to get 0 B/56.3 MB of archives.
After this operation, 48.8 MB of additional disk space will be used.
Selecting previously unselected package linux-image-4.4.0-112-generic.
(Reading database ... 43387 files and directories currently installed.)
Preparing to unpack .../linux-image-4.4.0-112-generic_4.4.0-112.135_i386.deb ...
Done.
Unpacking linux-image-4.4.0-112-generic (4.4.0-112.135) ...
Selecting previously unselected package linux-image-generic.
Preparing to unpack .../linux-image-generic_4.4.0.112.118_i386.deb ...
Unpacking linux-image-generic (4.4.0.112.118) ...
Setting up linux-image-4.4.0-112-generic (4.4.0-112.135) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-112-generic /boot/vmlinuz-4.4.0-112-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-112-generic
mktemp: failed to create directory via template ‘/var/tmp/mkinitramfs_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-4.4.0-112-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-112-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-112-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: error processing package linux-image-extra-4.4.0-112-generic (--configure):
package linux-image-extra-4.4.0-112-generic is not ready for configuration
cannot configure (current status 'half-installed')
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-4.4.0-112-generic; however:
Package linux-image-4.4.0-112-generic is not configured yet.
linux-image-generic depends on linux-image-extra-4.4.0-112-generic; however:
Package linux-image-extra-4.4.0-112-generic is not installed.

dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-4.4.0-112-generic
linux-image-extra-4.4.0-112-generic
linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Nothing has been installed or something unexpected occurred
Will restore back to previous state now..
Press any key to close . . .

root@xenial:~#
No luck so far :roll:
Last edited by backi on Wed 24 Jan 2018, 14:36, edited 3 times in total.

keniv
Posts: 583
Joined: Tue 06 Oct 2009, 21:00
Location: Scotland

#880 Post by keniv »

Hi Fred,
Here is the output I get from

Code: Select all

upgrade-kernel

Code: Select all

root@xenial:~# upgrade-kernel
What this script does is:
- Upgrade the kernel (linux-image-generic) that's in use (if there is an update available)
- Upgrade the initrd and vmlinuz files inside /mnt/sdb1//17xendog/casper
(and create backup of the older ones to *.bak)
Note: this only works when frugally installed, not from read-only media e.g CD
Also, this script assumes that the initrd and vmlinuz files are
located in the same folder as the main filesystem.squashfs, e.g. in 'casper'
Press ENTER to continue 

Sorry, it seems that /mnt/sdb1//17xendog/casper is on read-only media, booting from CD maybe?
Cannot write here, exiting...
root@xenial:~# 
Here is the output from

Code: Select all

ls -l /var/cache/apt/archives/ | grep partial

Code: Select all

root@xenial:~# ls -l /var/cache/apt/archives/ | grep partial
drwx------ 2 _apt root     4096 Jan  6 15:41 partial
root@xenial:~# 
In terms of "Sorry, it seems that /mnt/sdb1//17xendog/casper is on read-only media, booting from CD maybe?" I'm booting from sdb1 which is an idehd. I don't understand why it sees this as read only.
The output from

Code: Select all

ls -l /var/cache/apt/archives/ | grep partial
looks similar to yours so I assume thats OK.

Regards,

Ken.

Post Reply