PPM Broken in Fossapup?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
ThatFrostyCGuy
Posts: 4
Joined: Mon Mar 13, 2023 8:47 pm
Location: Louisville, KY, USA

PPM Broken in Fossapup?

Post by ThatFrostyCGuy »

so I went to install a package... (pip for python3)
I get an error...
Image

...so I try to update databases like the error suggests...
I get this...
Image

So what do I do?

User avatar
bigpup
Moderator
Posts: 6985
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 906 times
Been thanked: 1522 times

Re: PPM Broken -- Please Help!

Post by bigpup »

What specific Puppy version are you running?

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
ThatFrostyCGuy
Posts: 4
Joined: Mon Mar 13, 2023 8:47 pm
Location: Louisville, KY, USA

Re: PPM Broken?

Post by ThatFrostyCGuy »

Fossa64

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: PPM Broken in Fossapup?

Post by Jasper »

@ThatFrostyCGuy

An alternative method would be to use terminal to update the package:

python3 -m pip install --upgrade pip

once it has downloaded and installed the update, run this command to verify it is installed:

python3 -m pip --version

Burunduk
Posts: 251
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 7 times
Been thanked: 127 times

Re: PPM Broken in Fossapup?

Post by Burunduk »

Is it Fossapup64-9.5? I don't have 9.6 to test. I installed these pip debs with the PPM on my Fossapup successfully.

The second screenshot shows that some files in your Puppy may be missing or corrupted.

Code: Select all

- PKG DB  : Packages-puppy--official
- LOCATION: https://distro.ibiblio.org/puppylinux/Packages-puppy--official

Looks like the DISTRO_DB_SUBNAME variable is empty. It should be set to 'fossa64' in the /etc/DISTRO_SPECS file.
I get:

Code: Select all

- PKG DB  : Packages-puppy-fossa64-official
- LOCATION: https://distro.ibiblio.org/puppylinux/Packages-puppy-fossa64-official

DISTRO_COMPAT_VERSION is probably empty too, resulting in broken download links for ubuntu packages. Can you install any other package? If it's a frugal install, try to boot without the savefile or folder and see if the PPM works and the database can be updated. If yes, the problem is in the savefile/folder. The easiest way to fix a savefile is to create a new one.

(python3 -m pip install --upgrade pip gives 'No module named pip' if pip is not installed as does python -m ensurepip --upgrade
The pip.pyz may work.)

User avatar
ThatFrostyCGuy
Posts: 4
Joined: Mon Mar 13, 2023 8:47 pm
Location: Louisville, KY, USA

Re: PPM Broken in Fossapup?

Post by ThatFrostyCGuy »

Thank you for the replys.

Burunduk wrote: Tue Mar 14, 2023 3:38 pm

The second screenshot shows that some files in your Puppy may be missing or corrupted.

Looks like the DISTRO_DB_SUBNAME variable is empty. It should be set to 'fossa64' in the /etc/DISTRO_SPECS file.

Here's my DISTRO_SPECS:

Code: Select all

#One or more words that identify this distribution:
DISTRO_NAME='fossapup64'
#version number of this distribution:
DISTRO_VERSION=9.5
#The distro whose binary packages were used to build this distribution:
DISTRO_BINARY_COMPAT='ubuntu'
#Prefix for some filenames: exs: bionicpup64save.2fs, bionicpup64-7.9.8.sfs
DISTRO_FILE_PREFIX='fossapup64'
#The version of the distro whose binary packages were used to build this distro:
DISTRO_COMPAT_VERSION='focal'
#read by /usr/bin/xwin to bypass Xorg Wizard at first boot:
DISTRO_XORG_AUTO='yes'
DISTRO_KERNEL_PET='Huge_Kernel'
DISTRO_DB_SUBNAME='fossa64'
#multiarch distros, such as Ubuntu, will have this. ex: /usr/lib/i386-linux-gnu, so DISTRO_ARCHDIR=i386-linux-gnu
DISTRO_TARGETARCH='x86_64'
NO_MULTIARCH_SYMLINK=1
BUILD_FROM_WOOF='testing;2dee7595a;2020-06-19 20:43:24 +1000'
#Puppy default filenames...
#Note, the 'SFS' files below are what the 'init' script in initrd.gz searches for,
#for the partition, path and actual files loaded, see PUPSFS and ZDRV in /etc/rc.d/PUPSTATE
DISTRO_PUPPYSFS='puppy_fossapup64_9.5.sfs'
DISTRO_ZDRVSFS='zdrv_fossapup64_9.5.sfs'
DISTRO_FDRVSFS='fdrv_fossapup64_9.5.sfs'
DISTRO_ADRVSFS='adrv_fossapup64_9.5.sfs'
DISTRO_YDRVSFS='ydrv_fossapup64_9.5.sfs'
DISTRO_PUPPYDATE='Sep 2020'
DISTRO_ARCHDIR='x86_64-linux-gnu'

I manually edited the DISTRO_COMPAT_REPOS to:

Code: Select all

PKG_DOCS_DISTRO_COMPAT='z|http://archive.ubuntu.com/ubuntu/dists/focal/main/binary-amd64/Packages.xz|Ubuntu-Main z|http://archive.ubuntu.com/ubuntu/dists/focal/universe/binary-amd64/Packages.xz|Ubuntu-Universe z|http://archive.ubuntu.com/ubuntu/dists/focal/multiverse/binary-amd64/Packages.xz|Ubuntu-Multiverse'
REPOS_DISTRO_COMPAT='z|http://archive.ubuntu.com/ubuntu|Packages---* z|http://mirrors.kernel.org/ubuntu|Packages---* z|ftp.osuosl.org/pub/ubuntu|Packages---*'

And DISTRO_PET_REPOS to:

Code: Select all

PET_REPOS='z|http://distro.ibiblio.org/puppylinux/Packages-puppy-fossa64-official z|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux|Packages-puppy-fossa64-official z|http://ftp.cc.uoc.gr/mirrors/linux/puppylinux|Packages-puppy-fossa64-official z|ftp://mirror.aarnet.edu.au/pub/puppylinux|Packages-puppy-fossa64-official z|http://distro.ibiblio.org/puppylinux|Packages-puppy-fossa64-official z|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux|Packages-puppy-fossa64-official z|ftp://ftp.vcu.edu/pub/gnu+linux/puppylinux|Packages-puppy-fossa64-official z|http://ftp.cc.uoc.gr/mirrors/linux/puppylinux|Packages-puppy-fossa64-official z|http://mirror.aarnet.edu.au/pub/puppylinux|Packages-puppy-fossa64-official z|http://mirror.internode.on.net/pub/puppylinux|Packages-puppy-fossa64-official'
PACKAGELISTS_PET_ORDER="Packages-puppy-fossa64-official Packages-puppy-common64-official Packages-puppy-noarch-official"

And... I can update the databases now....
BUT...
I get the same error installing pip from PPM...

Burunduk wrote: Tue Mar 14, 2023 3:38 pm

DISTRO_COMPAT_VERSION is probably empty too, resulting in broken download links for ubuntu packages.

(python3 -m pip install --upgrade pip gives 'No module named pip' if pip is not installed as does python -m ensurepip --upgrade
The pip.pyz may work.)

This is what I'm most concerned about...
Because I still can't install anything from ubuntu repos.
Image

Jasper wrote: Tue Mar 14, 2023 9:00 am

@ThatFrostyCGuy

An alternative method would be to use terminal to update the package:

python3 -m pip install --upgrade pip

once it has downloaded and installed the update, run this command to verify it is installed:

python3 -m pip --version

I ran python3 -m pip install --upgrade pip n terminal. And I think this may have corrected an issue... Apparently I had a broken pip installation from before....?

Here's the terminal output:

Code: Select all

python3 -m pip install --upgrade pip
Collecting pip
  Downloading pip-23.0.1-py3-none-any.whl (2.1 MB)
     |████████████████████████████████| 2.1 MB 1.5 MB/s 
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.0.2
    Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'pip'. No files were found to uninstall.
Successfully installed pip-23.0.1

pip is working... So thank you both for that. But How do I fix ubuntu package fetching in PPM? Thanks.

Burunduk
Posts: 251
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 7 times
Been thanked: 127 times

Re: PPM Broken in Fossapup?

Post by Burunduk »

ThatFrostyCGuy wrote: Tue Mar 14, 2023 6:20 pm

I manually edited the DISTRO_COMPAT_REPOS to:

Code: Select all

PKG_DOCS_DISTRO_COMPAT='z|http://archive.ubuntu.com/ubuntu/dists/focal/main/binary-amd64/Packages.xz|Ubuntu-Main z|http://archive.ubuntu.com/ubuntu/dists/focal/universe/binary-amd64/Packages.xz|Ubuntu-Universe z|http://archive.ubuntu.com/ubuntu/dists/focal/multiverse/binary-amd64/Packages.xz|Ubuntu-Multiverse'
REPOS_DISTRO_COMPAT='z|http://archive.ubuntu.com/ubuntu|Packages---* z|http://mirrors.kernel.org/ubuntu|Packages---* z|ftp.osuosl.org/pub/ubuntu|Packages---*'

And DISTRO_PET_REPOS to:

Code: Select all

PET_REPOS='z|http://distro.ibiblio.org/puppylinux/Packages-puppy-fossa64-official z|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux|Packages-puppy-fossa64-official z|http://ftp.cc.uoc.gr/mirrors/linux/puppylinux|Packages-puppy-fossa64-official z|ftp://mirror.aarnet.edu.au/pub/puppylinux|Packages-puppy-fossa64-official z|http://distro.ibiblio.org/puppylinux|Packages-puppy-fossa64-official z|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux|Packages-puppy-fossa64-official z|ftp://ftp.vcu.edu/pub/gnu+linux/puppylinux|Packages-puppy-fossa64-official z|http://ftp.cc.uoc.gr/mirrors/linux/puppylinux|Packages-puppy-fossa64-official z|http://mirror.aarnet.edu.au/pub/puppylinux|Packages-puppy-fossa64-official z|http://mirror.internode.on.net/pub/puppylinux|Packages-puppy-fossa64-official'
PACKAGELISTS_PET_ORDER="Packages-puppy-fossa64-official Packages-puppy-common64-official Packages-puppy-noarch-official"

Your DISTRO_SPECS is OK.

Don't know why you had to edit DISTRO_COMPAT_REPOS and DISTRO_PET_REPOS. Now the files are broken. E.g. there is '/' instead of '|' in one place and it should be "Packages-ubuntu-focal-*" instead of just 'Packages---*'.

The originals are in the main puppy sfs. You can mount the puppy_fossapup64_9.5.sfs and copy them from <mount-point>/var/packages (or directly from /initrd/pup_ro2/var/packages if it's a frugal install - note that it's not recommended to edit anything in the /initrd). They can be found also here.

The output of a wget command used by the PPM is saved in /tmp/download_file_spider.log0
For xautomation it should contain this link: http://archive.ubuntu.com/ubuntu/pool/universe/x/xautomation/xautomation_1.09-2_amd64.deb

User avatar
ThatFrostyCGuy
Posts: 4
Joined: Mon Mar 13, 2023 8:47 pm
Location: Louisville, KY, USA

Re: PPM Broken in Fossapup?

Post by ThatFrostyCGuy »

Burunduk wrote: Tue Mar 14, 2023 11:46 pm Your DISTRO_SPECS is OK.

Don't know why you had to edit DISTRO_COMPAT_REPOS and DISTRO_PET_REPOS. Now the files are broken. E.g. there is '/' instead of '|' in one place and it should be "Packages-ubuntu-focal-*" instead of just 'Packages---*'.

The originals are in the main puppy sfs. You can mount the puppy_fossapup64_9.5.sfs and copy them from <mount-point>/var/packages (or directly from /initrd/pup_ro2/var/packages if it's a frugal install - note that it's not recommended to edit anything in the /initrd). They can be found also here.


The output of a wget command used by the PPM is saved in /tmp/download_file_spider.log0
For xautomation it should contain this link: http://archive.ubuntu.com/ubuntu/pool/universe/x/xautomation/xautomation_1.09-2_amd64.deb
I did make a backup before I edited them (Just in case), even though all I did was type "focal" between the dashes where it was missing.
However, I replaced both of them with the original ones you linked & everything works fine now. I don't know how I broke PPM, (it was broken before I messed with the files...) but I know how to fix it now.

Thank You. :thumbup2:
User avatar
bigpup
Moderator
Posts: 6985
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 906 times
Been thanked: 1522 times

Re: PPM Broken in Fossapup?

Post by bigpup »

Quickpet -> Info -> Fossapup updates

Will install some updates and bug fixes.

One of them is this:

fix for lsb-release breaking pip3 python installer

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
bigpup
Moderator
Posts: 6985
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 906 times
Been thanked: 1522 times

Re: PPM Broken in Fossapup?

Post by bigpup »

I just tried PPM database update in my install of Fossapup64 9.5.

Seems to be working OK.

Your issue could have been a problem with ibiblio.org

Their web site does go down at times or develop issues.

It is located at a college in the United States and is part of their computer network, used for teaching.

So, students do mess it up sometimes and needs fixing.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Post Reply

Return to “Users”