slapt-get can't install packages from disc

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

slapt-get can't install packages from disc

Post by zAchAry » 25. Jul 2015, 08:50

Using BASIC installation of Salix Xfce 14.1

slapt-get is able to retrieve list of packages in disc, but can't install packages from disc.

Add one of the followings:
file:///run/media/HOSTNAME/Salix xfce RC2/
file:///run/media/HOSTNAME/Salix%20xfce%20RC2/
file:/run/media/HOSTNAME/Salix xfce RC2/
file:/run/media/HOSTNAME/Salix%20xfce%20RC2/

Code: Select all

SOURCE=file:///run/media/HOSTNAME/Salix xfce RC2/:CUSTOM
  • 1. Select wicd
    2. Execute
Error
Failed to read urwid: Couldn't read a file:// file

Code: Select all

# slapt-get -i wicd
Reading Package Lists...Done
The following NEW packages will be installed:
  urwid wireless-tools wpa_supplicant iw wicd 
0 upgraded, 0 reinstalled, 5 newly installed, 0 to remove, 0 not upgraded.
Need to get 1.4MB of archives.
After unpacking 5.4MB of additional disk space will be used.
1/5 Get file:///run/media/HOSTNAME/Salix%20xfce%20RC2/ urwid 1.0.1-i486-1 [327.0kB]...Failed to download: Couldn't read a file:// file

Code: Select all

# slapt-get -i wicd
Reading Package Lists...Done
The following NEW packages will be installed:
  urwid wireless-tools wpa_supplicant iw wicd 
0 upgraded, 0 reinstalled, 5 newly installed, 0 to remove, 0 not upgraded.
Need to get 1.4MB of archives.
After unpacking 5.4MB of additional disk space will be used.
1/5 Get file:///run/media/HOSTNAME/Salix xfce RC2/ urwid 1.0.1-i486-1 [327.0kB]...Failed to download: Couldn't read a file:// file
Image
Help to make Slackware easier Donate to Salix

User avatar
gapan
Salix Wizard
Posts: 5523
Joined: 6. Jun 2009, 17:40

Re: slapt-get can't install packages from disc

Post by gapan » 25. Jul 2015, 09:02

Escape the spaces.
Image
Image

User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: slapt-get can't install packages from disc

Post by zAchAry » 25. Jul 2015, 09:06

As you can see, I did that, too.
Image
Help to make Slackware easier Donate to Salix

User avatar
gapan
Salix Wizard
Posts: 5523
Joined: 6. Jun 2009, 17:40

Re: slapt-get can't install packages from disc

Post by gapan » 25. Jul 2015, 09:06

No, you didn't.
Image
Image

User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: slapt-get can't install packages from disc

Post by zAchAry » 25. Jul 2015, 12:02

I have tried with all of these:

Code: Select all

file:///run/media/HOSTNAME/Salix xfce RC2/
file:///run/media/HOSTNAME/Salix%20xfce%20RC2/
file:/run/media/HOSTNAME/Salix xfce RC2/
file:/run/media/HOSTNAME/Salix%20xfce%20RC2/
All gave me the same result:
Retrieving package list is OK.
Downloading packages is NOT OK.
Image
Help to make Slackware easier Donate to Salix

User avatar
laprjns
Salix Warrior
Posts: 1034
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: slapt-get can't install packages from disc

Post by laprjns » 25. Jul 2015, 14:39

The escape character is \ not %20. So it should be:
file:///run/media/HOSTNAME/Salix\ xfce\ RC2

User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: slapt-get can't install packages from disc

Post by zAchAry » 9. Aug 2015, 16:47

Code: Select all

$ cat /etc/slapt-get/slapt-getrc
WORKINGDIR=/var/slapt-get
EXCLUDE=^aaa_elflibs,^aaa_base,^devs,^glibc.*,^kernel-.*,^udev,^rootuser-settings,^zzz-settings.*,-x86_64-
#DISABLED=http://salix.mirror.garr.it/mirrors/salix/i486/slackware-14.1/:OFFICIAL
#DISABLED=http://salix.mirror.garr.it/mirrors/salix/i486/slackware-14.1/extra/:OFFICIAL
#DISABLED=http://salix.mirror.garr.it/mirrors/salix/i486/14.1/:PREFERRED
SOURCE=file:///run/media/HOSTNAME/Salix\ xfce\ RC2/:PREFERRED
Not working at all, not even retrieval of package list.
Image
Help to make Slackware easier Donate to Salix

westms
Posts: 298
Joined: 17. Mar 2013, 18:51

Re: slapt-get can't install packages from disc

Post by westms » 9. Aug 2015, 17:34

zAchAry wrote:

Code: Select all

$ cat /etc/slapt-get/slapt-getrc
WORKINGDIR=/var/slapt-get
EXCLUDE=^aaa_elflibs,^aaa_base,^devs,^glibc.*,^kernel-.*,^udev,^rootuser-settings,^zzz-settings.*,-x86_64-
#DISABLED=http://salix.mirror.garr.it/mirrors/salix/i486/slackware-14.1/:OFFICIAL
#DISABLED=http://salix.mirror.garr.it/mirrors/salix/i486/slackware-14.1/extra/:OFFICIAL
#DISABLED=http://salix.mirror.garr.it/mirrors/salix/i486/14.1/:PREFERRED
SOURCE=file:///run/media/HOSTNAME/Salix\ xfce\ RC2/:PREFERRED
Not working at all, not even retrieval of package list.

Code: Select all

SOURCE=file:///run/media/HOSTNAME/Salix\ xfce\ RC2/:PREFERRED
Was the medium mounted before running slapt-get? If so, please show the contents of /etc/mtab .

You say, you try to install packages from disc. In this case, from your source path, what is the part of string "HOSTNAME" meaning? Your HOSTNAME string has a position where the user's name has to be, this one, which did the mount.

User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: slapt-get can't install packages from disc

Post by zAchAry » 10. Aug 2015, 03:53

westms wrote:Was the medium mounted before running slapt-get? If so, please show the contents of /etc/mtab .
Yes, it was mounted, I later checked if I retrieval of package list with file:///run/media/HOSTNAME/Salix xfce RC2/ works, and it did work.
westms wrote:You say, you try to install packages from disc. In this case, from your source path, what is the part of string "HOSTNAME" meaning? Your HOSTNAME string has a position where the user's name has to be, this one, which did the mount.
In reality, HOSTNAME is replaced by my_user_name (/home/my_user_name/...).
Image
Help to make Slackware easier Donate to Salix

westms
Posts: 298
Joined: 17. Mar 2013, 18:51

Re: slapt-get can't install packages from disc

Post by westms » 10. Aug 2015, 15:22

zAchAry wrote:In reality, HOSTNAME is replaced by my_user_name (/home/my_user_name/...).
Well, my suspicions were not correct. One more try.

The Salix you installed is Salix Xfce 14.1. If the disc (CD/DVD) you try to use is a Salix installation disk, then it should have a version number in its disc label, but there is only "[....]Salix\ xfce\ RC2". Should it be "SOURCE=file:///run/media/HOSTNAME/Salix\ xfce\ 14.1RC2/:PREFERRED" or similar in /etc/slapt-get/slapt-getrc ?. Perhaps you missed the version number.

If this is all wrong, do you use your own built Salix/Slackware repositories disk?

If I mount my Salix64 installation disc, it is mounted as "/run/media/westms/Salix64\ xfce\ 14.1RC2", respectively as "/run/media/westms/Salix64\040xfce\04014.1RC2" from /etc/mtab (with octal given space characters).

Post Reply