Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 May 2018, 08:15
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
XenialDog (Ubuntu 16.04 'Xenial Xerus' LTS, 32-bit)
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 59 of 65 [965 Posts]   Goto page: Previous 1, 2, 3, ..., 57, 58, 59, 60, 61, 62, 63, 64, 65 Next
Author Message
keniv

Joined: 06 Oct 2009
Posts: 490
Location: Scotland

PostPosted: Fri 05 Jan 2018, 10:56    Post subject:  

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:
[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:
#!/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.
Back to top
View user's profile Send private message 
Max Headroom


Joined: 28 Jun 2006
Posts: 358
Location: GodZone Kiwi

PostPosted: Sun 14 Jan 2018, 23:25    Post subject:  

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?!?

SmileK

_________________
PC is Not Political Correctness Razz , it's a Personal Computer!
Back to top
View user's profile Send private message Yahoo Messenger 
fredx181


Joined: 11 Dec 2013
Posts: 2973
Location: holland

PostPosted: Mon 15 Jan 2018, 07:25    Post subject:  

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?!?

SmileK


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:
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

_________________
Dog Linux website
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1472
Location: GERMANY

PostPosted: Tue 23 Jan 2018, 08:14    Post subject:  

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 ?
Back to top
View user's profile Send private message 
keniv

Joined: 06 Oct 2009
Posts: 490
Location: Scotland

PostPosted: Tue 23 Jan 2018, 10:43    Post subject:  

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.
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2973
Location: holland

PostPosted: Tue 23 Jan 2018, 17:01    Post subject:  

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:
upgrade-kernel

And paste the error part here ?

And can you both check the output of:
Code:
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

_________________
Dog Linux website
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1472
Location: GERMANY

PostPosted: Wed 24 Jan 2018, 08:21    Post subject:  

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.Cool ...
/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 !
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2973
Location: holland

PostPosted: Wed 24 Jan 2018, 09:00    Post subject:  

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:
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:
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:
apt-get -f install

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

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1472
Location: GERMANY

PostPosted: Wed 24 Jan 2018, 09:56    Post subject:  

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 Rolling Eyes

Last edited by backi on Wed 24 Jan 2018, 10:36; edited 3 times in total
Back to top
View user's profile Send private message 
keniv

Joined: 06 Oct 2009
Posts: 490
Location: Scotland

PostPosted: Wed 24 Jan 2018, 10:20    Post subject:  

Hi Fred,
Here is the output I get from

Code:
upgrade-kernel


Code:
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:
ls -l /var/cache/apt/archives/ | grep partial


Code:
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:
ls -l /var/cache/apt/archives/ | grep partial


looks similar to yours so I assume thats OK.

Regards,

Ken.
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1472
Location: GERMANY

PostPosted: Wed 24 Jan 2018, 10:42    Post subject:  

Did another :


root@xenial:~# dpkg --configure -a
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-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-generic
root@xenial:~#
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2973
Location: holland

PostPosted: Wed 24 Jan 2018, 10:44    Post subject:  

Hi backi, it seems to get stuck at this point:
Code:
mktemp: failed to create directory via template ‘/var/tmp/mkinitramfs_XXXXXX’: No such file or directory

So something is wrong there.
Can you look if you have /var/tmp directory ?
If not, create it:
Code:
mkdir /var/tmp

EDIT: Correct permissions should be 777 for /var/tmp, so should be (thanks rcrsn51):
Code:
mkdir -m 1777 /var/tmp

And try running upgrade-kernel again.

@Ken, thanks, that's a very different problem, I'll look into it and get back later.
EDIT: So you can create new file or folder in /mnt/sdb1//17xendog/casper ? (is writable?)
Output from:
Code:
ls -l  /mnt/sdb1//17xendog/

Should be for casper folder:
Code:
drwxr-xr-x ... ... ....


Fred

_________________
Dog Linux website

Last edited by fredx181 on Wed 24 Jan 2018, 12:11; edited 2 times in total
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1472
Location: GERMANY

PostPosted: Wed 24 Jan 2018, 11:04    Post subject:  

Hi Fred !
You`re the Man . Very Happy Very Happy Very Happy
Thanks a lot
Did help ........

Another silly Question ,,,,,do i have to save the Session afterwards .?
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2973
Location: holland

PostPosted: Wed 24 Jan 2018, 11:08    Post subject:  

backi wrote:
Hi Fred !
You`re the Man . Very Happy Very Happy Very Happy
Thanks a lot
Did help ........

Another silly Question ,,,,,do i have to save the Session afterwards .?


Hey, backi, great !! Very Happy
Kind of a mystery that you didn't have /var/tmp, it should be there by default.
Yes, you must save the session and after reboot you can uninstall the older kernel if you want.

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12000
Location: Stratford, Ontario

PostPosted: Wed 24 Jan 2018, 11:35    Post subject:  

You should check that /var/tmp has 777 permissions. Some printer drivers use it and CUPS can be fussy about permissions.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 59 of 65 [965 Posts]   Goto page: Previous 1, 2, 3, ..., 57, 58, 59, 60, 61, 62, 63, 64, 65 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1616s ][ Queries: 14 (0.0439s) ][ GZIP on ]