Posts: 10
kingneutron
Joined: 02 Jul 2011
#1
This idi0tic forum bl0ckzored my first attempt at posting (and deleted it) so here goes try #2:

Currently I'm on kernel 4.8 and use Virtualbox and ZFS from repos.  Every time I try to upgrade to an LTS kernel I get errors:

Code: Select all

# apt-cache search 4.9.0-0.bpo.3-amd64 |awk '{print $1}'
linux-headers-4.9.0-0.bpo.3-amd64
linux-image-4.9.0-0.bpo.3-amd64
linux-image-4.9.0-0.bpo.3-amd64-dbg
linux-image-amd64

# apt-get install linux-headers-4.9.0-0.bpo.3-amd64 linux-image-4.9.0-0.bpo.3-amd64
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:
 linux-image-4.9.0-0.bpo.3-amd64 : Depends: linux-base (>= 4.3~) but 3.5 is to be installed
E: Unable to correct problems, you have held broken packages.
I'd like to try and stay with Stable/Jessie if possible and avoid compiling a kernel from scratch (repos are preferred.)
Any advice is appreciated, TIA -- would also consider downgrading to kernel 4.4 if necessary.
Posts: 10
kingneutron
Joined: 02 Jul 2011
#2
Supplemental /etc/apt files attached... TIA
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#3

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was"bye-bye-tapatalk-new-antix-forum-t7245.html"
linktext was:"bye-bye-tapatalk-new-antix-forum-t7245.html"
====================================


Plus, to answer your question, why not install 4.10 antiX kernels:


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://antix.daveserver.info/jessie/pool/main/l/"
linktext was:"http://antix.daveserver.info/jessie/pool/main/l/"
====================================
Posts: 10
kingneutron
Joined: 02 Jul 2011
#4
Update: I found this post:

Code: Select all

./solved-need-new-antix-kernel-t6985.html#p51385
(In a Virtualbox P2V VM of my Antix host) + Edited sources.list.d/various.list and enabled the"liquorix kernels" repo, did apt-get update/upgrade, and ran into these errors:

Code: Select all

FAIL + upgrade kernel from 4.8 to 4.13.0-7.2-liquorix-amd64
[[
# apt-cache search 4.13.0-7.2-liquorix-amd64 |awk '{print $1}'
linux-headers-4.13.0-7.2-liquorix-amd64
linux-image-4.13.0-7.2-liquorix-amd64  

# apt-get install linux-headers-4.13.0-7.2-liquorix-amd64 linux-image-4.13.0-7.2-liquorix-amd64
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:
 linux-headers-4.13.0-7.2-liquorix-amd64 : Depends: gcc-7 but it is not installable
E: Unable to correct problems, you have held broken packages.
]]
  
---
FAIL + upgrade kernel from 4.8 to 4.9.0-49.1 (LTS)
[[
# apt-cache search 4.9.0-49.1-liquorix-amd64 |awk '{print $1}'
linux-headers-4.9.0-49.1-liquorix-amd64
linux-image-4.9.0-49.1-liquorix-amd64  

# apt-get install linux-headers-4.9.0-49.1-liquorix-amd64 linux-image-4.9.0-49.1-liquorix-amd64
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:
 linux-headers-4.9.0-49.1-liquorix-amd64 : Depends: gcc-6 but it is not installable
E: Unable to correct problems, you have held broken packages.
]]
--Honestly Antix is one of the best non-systemd distros I've seen, can't we get proper updated kernels without jumping through hoops?
Posts: 10
kingneutron
Joined: 02 Jul 2011
#5
anticapitalista wrote:
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was"bye-bye-tapatalk-new-antix-forum-t7245.html"
linktext was:"bye-bye-tapatalk-new-antix-forum-t7245.html"
====================================


Plus, to answer your question, why not install 4.10 antiX kernels:


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://antix.daveserver.info/jessie/pool/main/l/"
linktext was:"http://antix.daveserver.info/jessie/pool/main/l/"
====================================
I appreciate the response, but looking for more of a step-by-step rather than shorthand.  No offense, but what exactly would I have to add to my existing repos to satisfy *all* dependencies and get to a more modern kernel than 4.8? TIA
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#6
Use the metapackage installer in the control centre. Under kernel, you should see one later than 4.8. Just check the one you want to try and it will install the headers and image and also update grub (assuming your boot grub is your installed antiX one)
Posts: 10
kingneutron
Joined: 02 Jul 2011
#7
Thank you - I tried what you recommended in my VM and got an error:

Code: Select all

using" sudo /usr/local/bin/antixcc.sh" control center metapackage installer to upgrade kernel:

FAIL attempted upgrade kernel from 4.8 to 4.10.1
The following packages were automatically installed and are no longer required:
  libnvpair1linux libqt5opengl5 libqt5printsupport5 libqt5x11extras5
  libuutil1linux libzpool2linux
Use 'apt-get autoremove' to remove them.
Suggested packages:
  linux-firmware-image-4.10.1-antix.1-amd64-smp
The following NEW packages will be installed:
  linux-headers-4.10.1-antix.1-amd64-smp linux-image-4.10.1-antix.1-amd64-smp
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 43.0 MB of archives.
After this operation, 220 MB of additional disk space will be used.

update-initramfs: Generating /boot/initrd.img-4.10.1-antix.1-amd64-smp
Error: /sbin/zdb is not executable.  
Error: /sbin/zpool is not executable.
Error: /sbin/zfs is not executable.
E: /usr/share/initramfs-tools/hooks/zfs failed with return 2.
update-initramfs: failed for /boot/initrd.img-4.10.1-antix.1-amd64-smp with 2.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2
Generating grub configuration file ...
Found background: /usr/share/wallpaper/back.jpg
Found background image: /usr/share/wallpaper/back.jpg
Found linux image: /boot/vmlinuz-4.10.1-antix.1-amd64-smp
Found linux image: /boot/vmlinuz-4.8.10-antix.1-amd64-smp
Found initrd image: /boot/initrd.img-4.8.10-antix.1-amd64-smp
Found linux image: /boot/vmlinuz-4.4.10-antix.1-amd64-smp
Found initrd image: /boot/initrd.img-4.4.10-antix.1-amd64-smp
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
done
dpkg: error processing package linux-image-4.10.1-antix.1-amd64-smp (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-4.10.1-antix.1-amd64-smp
E: Sub-process /usr/bin/dpkg returned an error code (1)

search all installed packages who need locale packages, please wait ...
grep-dctrl: /var/lib/apt/lists/repo.antixlinux.com_jessie_dists_jessie_main_binary-amd64_Packages:3262: expected a colon.

I am using ZFS from the existing repos, so not sure why this is failing...
Posts: 1,139
masinick
Joined: 26 Apr 2008
#8
From what I can see it looks as though there are some packages that will need to be removed before the correct packages can be added.

When I get into this kind of situation, the first thing I try to do (all running either logged in as root or using sudo to access root; sometimes I spawn another command shell by using sudo su and providing my password) is to attempt to clean out packages that have been identified in the messages.

First try, I'll use apt-get -f install to see if the -f force is able to get rid of the mess.

If not, I try apt-get remove, providing the name of each package.  If I created a big mess, sometimes it'll take a few iterations, removing each set of applications that is missing, replaced, or otherwise incorrect.

When I'm done with this exercise, at that point I can run apt-get dist-upgrade or apt-get install listing the packages I want to add.

Try this and see if you are able to get rid of these messages and successfully install the intended software.  Remember of course the need to run as a privileged user, either root or using su or sudo (or both) to effectively gain root privileges; otherwise you can query the repository, but you won't be able to successfully install anything.

Let us know if any of this helps, and if not, record as much of your system and your session as possible since we've not reached a workable solution to your problem.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#9
inxi -r to show us your repos.
Posts: 10
kingneutron
Joined: 02 Jul 2011
#10
All, thanks for the help but I just found out Antix 17 was released(!)  Will give things a try there on a laptop and see if things work OK. Preciated!!