HOW TO INSTALL PYGPT ON LINUX?

Is it possible I have just failed to save the changes in Terminal and that's why some of the issues appear?

I can't even begin to speculate. I would say that, even if you get this installed, you're looking at a system that's fundamentally broken. When commands like ls -la ~/.local fail to work properly, there's something fundamentally broken with your system.

That shouldn't throw an error. It should just look like this:

Code:
$  ls -la ~/.local
total 28
drwxrwxr-x  7 kgiii kgiii 4096 Apr 25 19:14 .
drwxr-x--- 39 kgiii kgiii 4096 May 11 19:16 ..
drwxrwxr-x  3 kgiii kgiii 4096 Apr 25 19:22 bin
drwxrwxr-x  3 kgiii kgiii 4096 Apr 25 19:14 include
drwxrwxr-x  3 kgiii kgiii 4096 Feb 15 20:58 lib
drwxrwxr-x 29 kgiii kgiii 4096 May 11 18:29 share
drwxrwxr-x  3 kgiii kgiii 4096 Nov 26 02:08 state

We can try this command:

cd ~/.local/bin && ls -la

At that point, you'd then look for anything starting with pygpt and we can work from there.

As for Snaps, you either need to enable them or use an OS that supports them. It's possible to enable Snaps on most distros, but I'm not sure that's something you really want to try at this point. I dare say that your system is broken in ways I don't understand and nobody else seems to be suggesting ways to fix it.
 


Another option to help you track down pygpt would be to try:
Bash:
sudo updatedb
That will update the hashed database used by the locate command.
Then run:
Bash:
locate pygpt
That will list all files on your system that contain pygpt anywhere in the name/path.
AI has been helping me with this now, although I still need human help! Thankfully I can now copy from Terminal.

Apparently there is an issue with Authentication. All of what AI wrote is way too much for inserting in this thread, but the latest is this, and any human help is appreciated:

I would like to try a snap install as Marcin suggested. I am getting this message:

[Package snapd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'snapd' has no installation candidate]

HOW CAN I INSTALL SNAP?

emanatepresence@HigherThoughtPad:~$ sudo -l
Matching Defaults entries for emanatepresence on HigherThoughtPad:
env_reset, mail_badpass,
secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin,
use_pty, pwfeedback

User emanatepresence may run the following commands on HigherThoughtPad:
(ALL : ALL) ALL
(root) NOPASSWD: /usr/bin/mintdrivers-remove-live-media
(root) NOPASSWD: /usr/bin/mint-refresh-cache
(root) NOPASSWD: /usr/lib/linuxmint/mintUpdate/synaptic-workaround.py
(root) NOPASSWD: /usr/lib/linuxmint/mintUpdate/dpkg_lock_check.sh
emanatepresence@HigherThoughtPad:~$ sudo apt-get install snapd
[sudo] password for emanatepresence:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package snapd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'snapd' has no installation candidate
emanatepresence@HigherThoughtPad:~$
 
I can't even begin to speculate. I would say that, even if you get this installed, you're looking at a system that's fundamentally broken. When commands like ls -la ~/.local fail to work properly, there's something fundamentally broken with your system.

That shouldn't throw an error. It should just look like this:

Code:
$  ls -la ~/.local
total 28
drwxrwxr-x  7 kgiii kgiii 4096 Apr 25 19:14 .
drwxr-x--- 39 kgiii kgiii 4096 May 11 19:16 ..
drwxrwxr-x  3 kgiii kgiii 4096 Apr 25 19:22 bin
drwxrwxr-x  3 kgiii kgiii 4096 Apr 25 19:14 include
drwxrwxr-x  3 kgiii kgiii 4096 Feb 15 20:58 lib
drwxrwxr-x 29 kgiii kgiii 4096 May 11 18:29 share
drwxrwxr-x  3 kgiii kgiii 4096 Nov 26 02:08 state

We can try this command:

cd ~/.local/bin && ls -la

At that point, you'd then look for anything starting with pygpt and we can work from there.

As for Snaps, you either need to enable them or use an OS that supports them. It's possible to enable Snaps on most distros, but I'm not sure that's something you really want to try at this point. I dare say that your system is broken in ways I don't understand and nobody else seems to be suggesting ways to fix it.
 
Well, if a re-install is the only viable option, I need to do my best to write 1, 2, 3 notes that I can follow through the whole process.

That will take awhile.

I ran 'cd ~/.local/bin && ls -la'

And found a line with pygpt.

Also noticed this:

emanatepresence@HigherThoughtPad:~/.local/bin$

"At that point, you'd then look for anything starting with pygpt and we can work from there."

-rwxrwxr-x 1 emanatepresence emanatepresence 210 May 16 13:25 pygpt
-rwxrwxr-x 1 emanatepresence emanatepresence 225 May 16 13:25 pyproject-build
-rwxrwxr-x 1 emanatepresence emanatepresence 212 May 16 13:25 pyrsa-decrypt
-rwxrwxr-x 1 emanatepresence emanatepresence 212 May 16 13:25 pyrsa-encrypt

Just now entered the ls -la ~/.local command from the url with bin in it and it returned this:

emanatepresence@HigherThoughtPad:~/.local/bin$ ls -la ~/.local
total 28
drwxrwxr-x 7 emanatepresence emanatepresence 4096 May 16 13:25 .
drwxr-x--- 22 emanatepresence emanatepresence 4096 May 16 17:23 ..
drwxrwxr-x 2 emanatepresence emanatepresence 4096 May 16 13:25 bin
drwxrwxr-x 3 emanatepresence emanatepresence 4096 May 16 13:25 include
drwxrwxr-x 3 emanatepresence emanatepresence 4096 May 13 13:59 lib
drwxrwxr-x 16 emanatepresence emanatepresence 4096 May 16 17:29 share
drwxrwxr-x 3 emanatepresence emanatepresence 4096 Apr 6 16:42 state
emanatepresence@HigherThoughtPad:~/.local/bin$


Is that something?

So the ls -la ~/.local command DOES work on my system, it just needed to be at a different url if I interpret right.

And there's the bin file.

Can we see if the pygpt is in one of these folders? Maybe run it with the correct whats it called, directories and url?
 
Last edited:
drwxrwxr-x 2 emanatepresence emanatepresence 4096 May 16 13:25 bin

See? You do have /.local/bin.

-rwxrwxr-x 1 emanatepresence emanatepresence 210 May 16 13:25 pygpt

And you do have PyGPT in that directory.

Let's try this one more time... Run this command:

~/.local/bin/pygpt

Share the output from that command.

It looks like PyGTP is installed.
 
Here's the output from the command, and it seems to me I need to give the command from a different sub-directory:

emanatepresence@HigherThoughtPad:~$ ^[[200~~/.local/bin/pygpt~
bash: ~/.local/bin/pygpt~: No such file or directory
emanatepresence@HigherThoughtPad:~$

How do I get to:

emanatepresence@HigherThoughtPad:~/.local/bin$

How do I check if pygpt is in there, please?

I probably have to stop for awhile, getting awfully tired and would be more prone to mistakes.
 
Last edited:
AI is giving help. Lots needed to be installed. I think this last may give insight:

GNU nano 6.2 /etc/apt/sources.list
#deb cdrom:[Linux Mint 21.3 Virginia - Release amd64 20240109]/ jammy contrib>

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

Can anyone tell me about to configure apt package sources?
 
Last edited:
AI wrote this about configuring apt package sources. Should I?

Because according to the above, my installation was limited.

Would anyone be able to suggest what to enter as additional repositories?

Sure, here are the steps to configure the APT package sources on your Linux Mint Cinnamon system:

1. Open the Terminal application.

2. Open the sources.list file for editing:
Code:
   sudo nano /etc/apt/sources.list

3. This will open the sources.list file in the nano text editor. The file will likely contain the default Linux Mint repository entries, which should look something like this:

Code:
   # Linux Mint repositories definition
   deb https://mirrors.edge.kernel.org/linuxmint/ victoria main upstream import
   deb-src https://mirrors.edge.kernel.org/linuxmint/ victoria main upstream import

   # Linux Mint Cinnamon repositories
   deb https://mirrors.edge.kernel.org/linuxmint/ victoria cinnamon
   deb-src https://mirrors.edge.kernel.org/linuxmint/ victoria cinnamon

4. To add additional repositories, simply add new lines below the existing ones. For example, to add the Canonical Partner repository, you would add:

Code:
   deb http://archive.canonical.com/ubuntu jammy partner
   deb-src http://archive.canonical.com/ubuntu jammy partner

Make sure to replace "jammy" with the codename of your Linux Mint release (e.g., "victoria" for Linux Mint 21.3).

5. Save the changes and exit the nano editor by pressing Ctrl+X, then Y to save, and Enter to confirm the file name.

6. Update the package lists to reflect the new repository changes:
Code:
   sudo apt update

That's it! You've now successfully added a new APT package repository to your Linux Mint Cinnamon system. Remember to repeat these steps if you need to add or remove any other repositories in the future.
 
Was your command actually "~/.local/bin/pygpt~"? If so, remove the tilde.

If not, I have no idea what's broken on your system - but I doubt it's apt.
 
Hello, hello, I am back. After finding an error in the LM Cinnamon installation which was limiting my system, I tested two other versions of Linux before doing a new full install of LM Cinnamon Virginia which now seems stable. I installed PyGPT using Snap (then found a better way to do what I wanted to do... which is the Merlin AI Assistant! But PyGPT is still on my system, as a testament to my perseverance and fortitude), and everything is working great to this time. Many thanks to all who helped me through this process.
 

Members online


Top