LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-31-2019, 11:50 AM   #1
gnw
LQ Newbie
 
Registered: Jun 2019
Distribution: Slackware, openSUSE
Posts: 13

Rep: Reputation: Disabled
slackpkg complains because two versions of both bbswitch and nvidia-kernel are installed


Hi,

I am using Slackware-current.

I follow https://docs.slackware.com/howtos:sl...:systemupgrade to upgrade my system and so I prevent slackpkg from upgrading the kernel automatically. I also like to recompile and install (using installpkg, i.e. not using upgradepkg that would replace the old with the new) bumblebee modules for each kernel version so that if something wrong happens with the current kernel, I can easily boot a previous kernel. I decided to try Slackware thinking that doing such things would be more straightforward than in openSUSE (besides wanting to try a non-systemd distro).

So far I have done two system upgrades and I am planing to keep three working kernels and their modules installed before I start to remove the oldest version. I have already manually installed kernel-generic-4.19.62 but if I run slackpkg upgrade-all I get the following:

Code:
Checking local integrity... DONE
You have a broken /var/log/packages/ - with two versions of the same package.
The list of packages duplicated in your machine are shown below, but don't
worry about this list - when you select your action, slackpkg will show a
better list:

bbswitch-0.8_4.19.56-x86_64-1_bbsb
bbswitch-0.8_4.19.58-x86_64-1_bbsb
nvidia-kernel-410.73_4.19.56-x86_64-1_bbsb
nvidia-kernel-410.73_4.19.58-x86_64-1_bbsb

You can (B)lacklist, (R)emove, or (I)gnore these packages.
Select your action (B/R/I): I 

Okay - slackpkg won't do anything now, but please, do something to fix it.
I have
[0-9]+_bbsb
in /etc/slacpkg/blacklist so bbswitch*_bbsb and nvidia-kernel*_bbsb should be already blacklisted. Can anyone help with this issue?

Thanks.
 
Old 07-31-2019, 02:03 PM   #2
Labinnah
Member
 
Registered: May 2014
Location: Łódź, Poland
Distribution: Slackware-current
Posts: 185

Rep: Reputation: 112Reputation: 112
Check for spaces in this regex, see comment in blacklist file:
Code:
# DON'T put any space(s) before or after the package name or regexp.                                                                                                                                                                                                           
# If you do this, the blacklist will NOT work.

As workaround for upgrade time you can move those files somewhere else place.
 
Old 08-01-2019, 03:28 AM   #3
mumahendras3
Member
 
Registered: Feb 2018
Location: Indonesia
Distribution: Slackware-current + s6 + s6-rc + s6-linux-init (github.com/mumahendras3/sl6ckware)
Posts: 125

Rep: Reputation: Disabled
It seems that I got affected by this too. I'm pretty sure there are no spaces before and after the regexp. I just added the package name instead for now to bypass that warning (i.e. adding "nvidia-kernel" and "bbswitch" to /etc/slackpkg/blacklist or just choosing the (B) option when asked by slackpkg).
 
Old 08-03-2019, 12:43 PM   #4
gnw
LQ Newbie
 
Registered: Jun 2019
Distribution: Slackware, openSUSE
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thank you both,


Quote:
Originally Posted by mumahendras3 View Post
It seems that I got affected by this too. I'm pretty sure there are no spaces before and after the regexp. I just added the package name instead for now to bypass that warning (i.e. adding "nvidia-kernel" and "bbswitch" to /etc/slackpkg/blacklist or just choosing the (B) option when asked by slackpkg).
What I did was creating a backup of /etc/slackpkg/blacklist, and then choosing the B option. It just added
Code:
bbswitch
nvidia-kernel
at the end of the file. Now slackpkg doesn't complain about multiple versions of these packages being installed.

Thanks.

Last edited by gnw; 08-03-2019 at 12:43 PM. Reason: Spelling
 
  


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
Using bumblebee and bbswitch, discrete video card (Nvidia) is still on by default. me_h Slackware 7 12-11-2016 03:47 AM
DI 15.3 Error message on start bbswitch: No discrete VGA device found heffo_j Linux Deepin 4 11-06-2016 09:19 PM
Bumblebee [Optimus] BBswitch wont load anymore n4rf Linux - General 2 10-09-2015 05:34 AM
slackpkg complains about missing files KMBS Linux - Software 4 10-10-2009 04:25 AM
pygtk install found 2 versions of glib and complains Kanaflloric Linux - Software 1 09-28-2004 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:20 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