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 12-11-2018, 03:17 PM   #1
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Rep: Reputation: 16
Exclamation Cannot remove the installed packages


Hi guys

i didn't want to create new post, and keeping clean the forum, but i have pretty much the same problem.
i install slack 14.2 in a system with Crypt-LVM.
Afterwards, i upgrade to current, utilizing the 'Install slackware from hdd' method.
so far everything is working like a charm

The problem is that i cannot remove the installed packages and the output of removepkg command is as follow:
Quote:
bash-4.4# removepkg blueman-2.0.6-x86_64-2
No such package: blueman-2.0.6-x86_64-2. Can't remove.
Can you help to figure out what is going on here with the packages
 
Old 12-11-2018, 03:23 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107
Quote:
Originally Posted by mpregos View Post
Hi guys

i didn't want to create new post, and keeping clean the forum, but i have pretty much the same problem.
i install slack 14.2 in a system with Crypt-LVM.
Afterwards, i upgrade to current, utilizing the 'Install slackware from hdd' method.
so far everything is working like a charm

The problem is that i cannot remove the installed packages and the output of removepkg command is as follow:


Can you help to figure out what is going on here with the packages
Next time, DO create a new thread for your own unrelated problem.
For now (assuming that this package is actually installed), try either of these two:
Code:
removepkg /var/log/packages/blueman-2.0.6-x86_64-2
or
Code:
removepkg blueman
 
1 members found this post helpful.
Old 12-11-2018, 04:01 PM   #3
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Original Poster
Rep: Reputation: 16
Ok Bob, message received!!!

Now, about my problem, both commands not working
Quote:
bash-4.4# removepkg blueman-2.0.6-x86_64-2
No such package: blueman-2.0.6-x86_64-2. Can't remove.

bash-4.4# removepkg blueman
No such package: blueman. Can't remove
 
Old 12-11-2018, 04:53 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657
Quote:
Originally Posted by mpregos View Post
Ok Bob, message received!!!

Now, about my problem, both commands not working
You missed part of the command with the location.

Code:
removepkg /var/log/packages/blueman-2.0.6-x86_64-2
 
Old 12-11-2018, 05:22 PM   #5
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Original Poster
Rep: Reputation: 16
i am in that folder ,
Quote:
/var/log/packages
bassmadrigal

I don't know. what is wrong with the packages...i cannot understand!
 
Old 12-11-2018, 05:35 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657
I would probably start a new thread then so we can properly diagnose your problem and see if we can figure out what's wrong.
 
Old 12-11-2018, 05:39 PM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,687

Rep: Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803
in -current, the package database is moved to /var/lib/pkgtools/packages/
 
2 members found this post helpful.
Old 12-12-2018, 02:19 AM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107Reputation: 8107
I've requested that the moderators cut this discussion out of the thread and move it into a new one.
 
3 members found this post helpful.
Old 12-12-2018, 05:31 AM   #9
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Let's try this so that we know exactly why removepkg is bailing out:

Code:
bash -x /sbin/removepkg blueman-2.0.6-x86_64-2
 
Old 12-12-2018, 12:14 PM   #10
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Original Poster
Rep: Reputation: 16
Quote:
+ shopt -s extglob
+ export LC_ALL=C
+ LC_ALL=C
+ ADM_DIR=/var/lib/pkgtools
+ LOG_DIR=/var/log/pkgtools
+ TMP=/var/lib/pkgtools/setup/tmp
+ '[' '!' -d /var/lib/pkgtools/setup/tmp ']'
+ PRES_DIR=/var/lib/pkgtools/setup/tmp/preserved_packages
+ INSTLOCKDIR=/run/lock/pkgtools
+ '[' '!' -d /run/lock/pkgtools ']'
+ '[' 1 = 0 ']'
+ :
+ case "$1" in
+ break
+ '[' '' = true ']'
+ '[' '' = true ']'
+ remove_packages blueman-2.0.6-x86_64-2
+ for PKGLIST in $*
++ pkgbase blueman-2.0.6-x86_64-2
++ echo blueman-2.0.6-x86_64-2
++ sed 's?.*/??;s/\.t[bglx]z$//'
+ PKGNAME=blueman-2.0.6-x86_64-2
+ '[' '!' -e /var/lib/pkgtools/packages/blueman-2.0.6-x86_64-2 ']'
+ pushd /var/lib/pkgtools/packages
++ wc -l
++ ls -1 'blueman-2.0.6-x86_64-2-+([^-])-+([^-])-+([^-])'
+ '[' '!' 0 = 0 ']'
+ popd
+ '[' -r /var/lib/pkgtools/packages/blueman-2.0.6-x86_64-2 ']'
++ basename /var/lib/pkgtools/packages/blueman-2.0.6-x86_64-2
+ echo 'No such package: blueman-2.0.6-x86_64-2. Can'\''t remove.'
No such package: blueman-2.0.6-x86_64-2. Can't remove.
+ '[' '' = '' ']'
+ '[' -x /sbin/ldconfig ']'
+ flock 9
+ /sbin/ldconfig
here is the output
 
Old 12-12-2018, 12:47 PM   #11
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Please paste the output of the following command.

Code:
stat /var/lib/pkgtools/packages/blueman-2.0.6-x86_64-2
 
Old 12-12-2018, 01:57 PM   #12
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Original Poster
Rep: Reputation: 16
orbea here is what you asked
Quote:
File: blueman-2.0.6-x86_64-2
Size: 48181 Blocks: 96 IO Block: 4096 regular file
Device: fc02h/64514d Inode: 1463756 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2018-12-11 00:12:19.329456746 +0200
Modify: 2018-12-11 00:12:19.473456750 +0200
Change: 2018-12-12 21:54:36.635050889 +0200
Birth: -
 
Old 12-12-2018, 03:35 PM   #13
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Strange, you have the file and you have read permissions...
 
Old 12-12-2018, 04:19 PM   #14
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Original Poster
Rep: Reputation: 16
yes,a lot actually
i change the permission but nothing happened

maybe it has to do with the CPRYPT + LVM partition that i choose to use/install slackware.
sharing the scenario, maybe could be helpfull:
- Install 14.2 from dvd
- follow this guide to install the current iso from here
- make initrd for kernel 4.19.2 and put it to /boot
- reboot

Last edited by mpregos; 12-12-2018 at 04:24 PM.
 
Old 12-12-2018, 04:36 PM   #15
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
I would start adding echo commands to the script in an effort to debug it, this could take some trial and error.
 
  


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
Installation of packages in RHEL-5.3 using X windows menu Add/Remove packages akluthra Linux - Newbie 2 09-21-2010 05:34 AM
Remove a package and all packages it depends on without breaking other packages? macroron Fedora 2 01-31-2010 05:49 PM
Sort installed packages by # of dependant packages installed brianez21 Debian 1 01-18-2006 05:06 PM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 09:43 AM
error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages inward_eye Linux - Software 3 08-24-2003 03:07 PM

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

All times are GMT -5. The time now is 02:40 AM.

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