PPM Broken in Fossapup?
so I went to install a package... (pip for python3)
I get an error...
...so I try to update databases like the error suggests...
I get this...
So what do I do?
Discussion, talk and tips
https://forum.puppylinux.com/
so I went to install a package... (pip for python3)
I get an error...
...so I try to update databases like the error suggests...
I get this...
So what do I do?
What specific Puppy version are you running?
Fossa64
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
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.)
Thank you for the replys.
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...
This is what I'm most concerned about...
Because I still can't install anything from ubuntu repos.
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.
ThatFrostyCGuy wrote: ↑Tue Mar 14, 2023 6:20 pmI 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
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.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