LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2020, 09:50 PM   #1
jan128
Member
 
Registered: Nov 2020
Posts: 201

Rep: Reputation: Disabled
Removing linux-image-4.15.0-112-generic fails - more errors follow


EDITED by OP
per last post - this is pointless (..deleted , too offensive ... )

Last edited by jan128; 12-15-2020 at 08:45 AM. Reason: per last post - this is pointless (to post here )
 
Old 12-13-2020, 10:12 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
On which distro and version are you are installing it?
Which version of libbluetooth-dev are you trying to install?
Which repos are configured on your system? Show us /etc/apt/sources.list and the files in /etc/apt/sources.list.d, if any.

The installation process talks about menu.lst. This is a file that belongs to an old version of Grub, which isn't used in any recent Linux distro as far as I know. This makes me think that you are attempting to install a version of libbluetooth-dev that is not compatible with your system.
 
Old 12-14-2020, 08:41 AM   #3
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
Thanks for the reply.
See attached file. Hope it will do.

I do not get why it is trying to delete "current OS" .
I do not specify version of libbluetooth-dev
There is nothing in /etc/apt/sources.list.d

Should I try update /upgrade again and post outputs?

Thanks
Attached Files
File Type: pdf TRACKS.pdf (27.7 KB, 25 views)
 
Old 12-14-2020, 09:00 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,611
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
You should certainly be very cautious if apt tries to remove a "linux image", because that is your kernel. Now it might be an old kernel image which you don't actually need any more, or it might be the current one, but either way, you should always check that sort of thing before you go any further. If you open a terminal and type in
Code:
uname -r
it will print out your current kernel. If that also turns out to be 4.15.0, then you are definitely trying to install an incompatible version of the driver.

I notice also that you have a huge backlog of packages (66) waiting to be updated. Before doing anything else with apt, you should run an upgrade to get rid of that backlog. When you have done both those things, it will be time to work on the installation of the new driver.
 
Old 12-14-2020, 09:32 AM   #5
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
Follow -up on my last post and hazel reply.
Hope it helps to resolve this soon.

Thanks

EDIT
I do not know why there are dupes in the output, but I leave it alone.

f@f-SATA:~$ sudo apt upgrade
[sudo] password for f:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
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:
f@f-SATA:~$ sudo apt upgrade
[sudo] password for f:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
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.15.0-112-generic : Depends: linux-modules-4.15.0-112-generic but it is not going to be installed
E: Broken packages
f@f-SATA:~$


The following packages have unmet dependencies:
linux-image-4.15.0-112-generic : Depends: linux-modules-4.15.0-112-generic but it is not going to be installed
E: Broken packages
f@f-SATA:~$


f@f-SATA:~$ sudo apt upgrade
[sudo] password for f:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
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.15.0-112-generic : Depends: linux-modules-4.15.0-112-generic but it is not going to be installed
E: Broken packages
f@f-SATA:~$

Last edited by jan128; 12-14-2020 at 09:46 AM.
 
Old 12-14-2020, 09:37 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,611
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
So what is your current kernel version? What is the result of "uname -r"?
 
Old 12-14-2020, 09:50 AM   #7
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
Here is "update" output


Code:
f@f-SATA:~$ sudo apt update 
[sudo] password for f: 
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]     
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial InRelease                     
Get:4 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]    
Hit:5 http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu xenial InRelease     
Get:6 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]  
Get:7 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [93.0 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [130 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:10 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [326 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [281 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,960 B]
Get:13 http://us.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]
Get:14 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [6,612 B]
Fetched 1,174 kB in 1s (612 kB/s)                                       
Reading package lists... Done
Building dependency tree       
Reading state information... Done
66 packages can be upgraded. Run 'apt list --upgradable' to see them.
f@f-SATA:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
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.15.0-112-generic : Depends: linux-modules-4.15.0-112-generic but it is not going to be installed
E: Broken packages
f@f-SATA:~$
 
Old 12-14-2020, 10:26 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,611
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
I can immediately see one source of trouble. You have added extra repositories that are not part of Ubuntu Xenial, for example dl.google.com and ppa.launchpad.net. Packages from such repositories will be in the required Debian/Ubuntu format but they are unlikely to be fully compatible with other packages in Xenial. We often call this kind of setup a Franken-distro. That is what has got your package manager confused. It takes a experienced system administrator to manage such a setup and you are a novice.

Start by commenting out these repositories in your sources list. If I were in your situation, I would comment out the backports repositories too, at least until you get things straight. Then hopefully, you can get apt working again.

You might like to read this: https://www.linuxquestions.org/quest...se-them-37648/

Last edited by hazel; 12-14-2020 at 10:35 AM.
 
1 members found this post helpful.
Old 12-14-2020, 10:26 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,611
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
I can immediately see one source of trouble. You have added extra repositories that are not part of Ubuntu Xenial, for example dl.google.com and ppa.launchpad.net. Packages from such repositories will be in the required Debian/Ubuntu format but they are unlikely to be fully compatible with other packages in Xenial. We often call this kind of setup a Franken-distro. That is what has got your package manager confused. It takes a experienced system administrator to manage such a setup and you are a novice.

Start by commenting out these repositories in your sources list. If I were in your situation, I would comment out the backports repositories too, at least until you get things straight. Then hopefully, you can get apt working again.

You might like to read this: https://www.linuxquestions.org/quest...se-them-37648/

Last edited by hazel; 12-14-2020 at 10:35 AM.
 
1 members found this post helpful.
Old 12-14-2020, 11:06 AM   #10
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Code:
# apt-get -f install
 
2 members found this post helpful.
Old 12-14-2020, 01:50 PM   #11
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
f@f-SATA:~$ sudo apt-get -f install
[sudo] password for f:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
grub-efi-amd64-bin shim
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
linux-image-4.15.0-112-generic
0 upgraded, 0 newly installed, 1 to remove and 66 not upgraded.
2 not fully installed or removed.
After this operation, 8,223 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 245609 files and directories currently installed.)
Removing linux-image-4.15.0-112-generic (4.15.0-112.113~16.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-112-generic
/etc/kernel/postrm.d/zz-update-grub:
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ...

Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) /usr/sbin/update-grub: line 1094: read: read error: 0: Bad file descriptor
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-4.15.0-112-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-image-4.15.0-112-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
f@f-SATA:~$
 
Old 12-14-2020, 08:30 PM   #12
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
Update
I have several backup OS scattered in different disks , I have not bothered to use them recently. So I managed to boot on one of them and successfully updated and installed the bluetooth library. Unfortunately I cannot boot it again , the old issue with mdadm is messing things up - takes forever and I am not sure why. It never finishes and keep posting "giving up ".
But I did run upgrade and it installed version 120 , not the 122 I am having issues with.
Since there is only one grub I should be able to , with little patience, to activate one of the idle OS and upgrade it to 120 and get rid of the messy mdadm.
I am actually in need to replace one of the failing RAID disks anyway , waiting for replacement to arrive. It is time to
clean up the mess anyway.
I am not too happy to hack / bypass this problem, but it is way over me head and time consuming to keep changing OS and rebooting...
Sorry.

Last edited by jan128; 12-14-2020 at 08:32 PM.
 
Old 12-15-2020, 12:36 AM   #13
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
This thread looks like yet another (!) pointless re-opening of this topic:
https://www.linuxquestions.org/quest...ce-4175686720/
 
1 members found this post helpful.
Old 12-15-2020, 08:47 AM   #14
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
SOLVED by 4.15.0-128-generic
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Removing software stalls on removing old linux-image-5.4.0-48-generic. skriptmonkey Linux Mint 3 11-02-2020 03:20 PM
[SOLVED] linux-image-generic-hwe-18.04 and linux-generic-hwe-18.04 upgrade failure on Linux Mint 19.3 anon091 Linux - Distributions 6 04-12-2020 10:15 AM
[SOLVED] 10.112.112.112 gateway in my wireless router - what does it mean? igadoter Linux - Networking 15 09-08-2010 02:15 PM
Update from 2.6.27-13-generic to 2.6.27-14-generic fails bobreeves Linux - Kernel 1 03-19-2009 09:02 AM
Errors, Errors, and more Errors (KDE 3.4.x GUI Errors) Dralnu Linux - Software 2 05-13-2006 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration