Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Cleaning up my GnuPG mess


  • Please log in to reply
11 replies to this topic

#1 Achaemenid

Achaemenid

  • Members
  • 432 posts
  • OFFLINE
  •  
  • Local time:05:16 PM

Posted 22 November 2017 - 02:40 PM

I need to rebuld my pgp set up, so I went to one site, I think it is security in a box, which advises GnuPG

 

The program in the linux repository is old so I tried installing from the site.

 

After extracting I found the file that has a little terminal icon and copied its name to  the terminal

 

Trying to install it I got messages in the terminal that various libraries were needed. Those in the Linux repository were all too old, so I downloaded these from the source and tried to install them in the same way.

 

But after doing this I got the same message when trying to install GnuPG.

 

Trying to do this was way above my paygrade.

 

 

Then I read some advice from a tech friend my vpn admin,  that the easier way to install pgp is to use Thunderbird and Enigmail.

 

But I still have a lot of the files I installed trying to get GnuPG installed.

 

I am wondering if I should remove these files, if I can identify them all, before doing Enigmail, so there are not  conflicts.

These are files like "libtool" "npth-config" etc

 

I wish Linux had a restore function so I could just go back two days and delete all of this.

 

Any advice on this appreciated.



BC AdBot (Login to Remove)

 


#2 Al1000

Al1000

  • Global Moderator
  • 7,974 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:11:16 AM

Posted 22 November 2017 - 03:12 PM

That "old" version of gnupg is the version that will work on your operating system. What version is it? I'll bet it's no older than mine. :)
al@my-desktop-pc:~$ apt-cache policy gnupg
gnupg:
  Installed: 1.4.18-7+deb8u4
  Candidate: 1.4.18-7+deb8u4
 


#3 Mike_Walsh

Mike_Walsh

    Bleepin' 'Puppy' nut..!!


  • Members
  • 1,408 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:King's Lynn, UK
  • Local time:11:16 AM

Posted 22 November 2017 - 04:27 PM

Al's right, actually, y'know.

 

Linux is nowhere near as vulnerable as Windoze is (that's why you're always advised to install every Windows update the instant it's released.) Consequently, Linux is far happier running older, tried-and-tested (and usually very stable because of that) programs and apps.

 

And, as stated, the versions in the repos are proven to work with your particular distro, 'cos they're compiled & assembled to do so. Nothing wrong with downloading newer versions from the web, although it's not common practice in Linux.....but invariably they're the newest versions. Which means they'll also want a lot of the newest dependencies to go along with them.....and that can lead to an extended 'lib-chase' if you're not careful.

 

Newest is not always the best.....unless you have very specific requirements.

 

 

Mike.  :wink:


Edited by Mike_Walsh, 22 November 2017 - 04:27 PM.

Distros:- Multiple 'Puppies'..... and Anti-X 16.1

My Puppy BLOG ~~~  My Puppy PACKAGES

Compaq Presario SR1916UK; Athlon64 X2 3800+, 3 GB RAM, WD 500GB Caviar 'Blue', 32GB Kingspec PATA SSD, 3 TB Seagate 'Expansion' external HDD, ATI Radeon Xpress 200 graphics, Dell 15.1" pNp monitor (1024 x 768), TP-Link PCI-e USB 3.0 card, Logitech c920 HD Pro webcam, self-powered 7-port USB 2.0 hub

Dell Inspiron 1100; 2.6 GHz 400FSB P4, 1.5 GB RAM, 64GB KingSpec IDE SSD, Intel 'Extreme' graphics, 1 TB Seagate 'Expansion' external HDD, M$ HD-3000 'Lifecam'.

 

KXhaWqy.gifFQ8nrJ3.gif

 

 


#4 Achaemenid

Achaemenid
  • Topic Starter

  • Members
  • 432 posts
  • OFFLINE
  •  
  • Local time:05:16 PM

Posted 23 November 2017 - 11:08 AM

This is the gnupg that is already installed.

 

==========================================================

serapis@osireiron ~ $ apt-cache policy gnupg
gnupg:
  Installed: 1.4.16-1ubuntu2.4
  Candidate: 1.4.16-1ubuntu2.4
  Version table:
 *** 1.4.16-1ubuntu2.4 0
        500 http://mirrors.yun-idc.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
        100 /var/lib/dpkg/status
     1.4.16-1ubuntu2 0
        500 http://mirrors.yun-idc.com/ubuntu/ trusty/main amd64 Packages
serapis@osireiron ~ $
=========================================================================

 

 

What I was asking about is whether I should try to uninstall all the libs I installed or tried to install when trying to install the newer version of gnupg from the website.

 

Or can I just go ahead and configure Engmail with all that junk hanging around?



#5 Al1000

Al1000

  • Global Moderator
  • 7,974 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:11:16 AM

Posted 23 November 2017 - 04:17 PM

I imagine installing Engmail will be fine, but it won't do any harm to remove the unwanted packages.

Open a terminal and type history, to find the names of the packages you installed.

Use sudo apt-get autoremove to automatically remove unneeded dependencies that were installed automatically.

#6 Achaemenid

Achaemenid
  • Topic Starter

  • Members
  • 432 posts
  • OFFLINE
  •  
  • Local time:05:16 PM

Posted 25 November 2017 - 10:37 AM

Thanks for telling me about the history command.

 

Here are those files.

 

Attached File  GNUPG FILES INSTALLED.png   48.48KB   0 downloads

 

I usually use the following commands to uninstall:

 

sudo apt-get remove --auto-remov [program name]

then

 

aptitude purge [program name]
deborphan
aptitude purge $(deborphan)

 

(this is from askubuntu.com)

 

This reason I am reconfiguring gpg is to verify the signature on an ubuntu iso download before buring and installing it.


Edited by Achaemenid, 25 November 2017 - 10:40 AM.


#7 Achaemenid

Achaemenid
  • Topic Starter

  • Members
  • 432 posts
  • OFFLINE
  •  
  • Local time:05:16 PM

Posted 25 November 2017 - 11:10 AM

I just tried stage one of the uninstall of gnupg 2.2.3 but linus is telling me it cannot locate the package.

 

Attached File  APT-GET UNABLE LOCATE PACKAGE.png   155.58KB   0 downloads

 

Looking at the directory where history says gnupg-2.2.3 is located I get this:

 

Attached File  gnupg directory.png   191.6KB   0 downloads

 

Inside the gnupg folder is this:

 

Attached File  INSIDE GNUPG DIRECTORY.png   113.36KB   0 downloads

 

But I see no designation of the 2.2.3

 

I don't think I want to delete the gnupg directory because it may be needed for Enigmail.

If I can't uninstall these files, I will just go ahead and configure Enigmail.


Edited by Achaemenid, 25 November 2017 - 11:12 AM.


#8 Al1000

Al1000

  • Global Moderator
  • 7,974 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:11:16 AM

Posted 26 November 2017 - 10:54 AM

gnupg 2.2.3 isn't installed.

The output of apt-cache policy that you posted in post #4, shows the version that is installed.

#9 nuna

nuna

  • Members
  • 155 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Local time:11:16 AM

Posted 26 November 2017 - 12:59 PM

I'd say it's safe to remove the gnupg files from your Downloads folder, but I'd leave the other folder (.gnupg) as is.

You might find more information on what has been installed in the log:

/var/log/apt/history.log

I also think you can proceed installing Enigmail.


Edited by nuna, 26 November 2017 - 12:59 PM.


#10 Achaemenid

Achaemenid
  • Topic Starter

  • Members
  • 432 posts
  • OFFLINE
  •  
  • Local time:05:16 PM

Posted 27 November 2017 - 10:59 AM

I'd say it's safe to remove the gnupg files from your Downloads folder, but I'd leave the other folder (.gnupg) as is.

You might find more information on what has been installed in the log:

/var/log/apt/history.log

I also think you can proceed installing Enigmail.

Thanks for these tips.

 

Yes, I see a folder named GnuPG with the contents of what I tried to install.

 

and in my username folder I see the .gnupg folder.

 

I just tried the terminal command but was refused both times, even with sudo. see screenshot

Attached Files



#11 Achaemenid

Achaemenid
  • Topic Starter

  • Members
  • 432 posts
  • OFFLINE
  •  
  • Local time:05:16 PM

Posted 27 November 2017 - 11:06 AM

gnupg 2.2.3 isn't installed.

The output of apt-cache policy that you posted in post #4, shows the version that is installed.

I tried a few times to install it, but was told I needed the lib... files,

so I tried installing these one by one but it did not work for some reason.

 

As long as I already have gnupg, I can use that with Engmail. We can probably consider this thread solved.

 

I have gone ahead and set up Enigmail again.

 

I have run into a snag verifying the sha256sum and gpg for the ubuntu 16.04.3 iso download.

I guess that is the subject of a different thread. If there is a tutorial somewhere, it would be helpful. I am not having any luck so far with the tutorials on Securityinabox and on the Ubuntu.com website.

 

Thanks to AI 1000, Mike_Walsh, and nuna for helping me.



#12 Al1000

Al1000

  • Global Moderator
  • 7,974 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:11:16 AM

Posted 27 November 2017 - 03:44 PM

I just tried the terminal command but was refused both times, even with sudo. see screenshot


It's not a command, it's the path to your history.log file. To read the file, open it in a text editor, or use cat.

cat /var/log/apt/history.log

I have run into a snag verifying the sha256sum and gpg for the ubuntu 16.04.3 iso download.

I guess that is the subject of a different thread.


Yes, please start a new thread for that.

Thanks to AI 1000, Mike_Walsh, and nuna for helping me.


You're welcome.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users