Page 1 of 2

mirror update

Posted: 18. Nov 2013, 00:59
by noob51
Back again,

I updated mirrors to 14.1, now I can't update anything form any listed mirrors. using gslapt. how do i change back to 14.0

Thanks.

Re: mirror update

Posted: 18. Nov 2013, 01:28
by mimosa
edit -> preferences -> sources

... then change 14.1 back to 14.0. You have to select each line by clicking on it and then the edit button.

I'm curious though - how did you change them to 14.1 in the first place?

It may be an idea after you have done that and *before you reboot* to update and then upgrade just to make sure you haven't got any 14.1 stuff in your system.

If you are running Slaix 14.0 (or 14.0.1) then you need to use the 14.0 repos. Changing them will not work - and in any case, 14.1 hasn't been released yet. When it is, there will be instructions to upgrade to 14.1 from 14.0 - though it may be simpler to just do a fresh install.

Re: mirror update

Posted: 18. Nov 2013, 01:49
by noob51
Thanks for the reply,

here is the error I'm getting:

Source directive not set within /etc/slapt-get/slapt-getrc.
And

This package source failed or not available.
And
Gslapt doesn't load anymore.

Thanks again. A real noob.

Re: mirror update

Posted: 18. Nov 2013, 03:55
by gaucho
Hi, noob51,

Here's an idea for a fix you might try ... gapan created a tool called reposetup, which gives users the ability to update their repo mirrors. He provided simple instructions for using it in this thread:

http://forum.salixos.org/viewtopic.php?f=17&t=4932
"Please change your repository mirror!" 1 Oct. 2013.

You could download the utility directly, try running it and see if it restores your Gslapt functionality.

HTH and Good luck.

Re: mirror update

Posted: 18. Nov 2013, 10:27
by mimosa
Good suggestion! :)

To do that, download the .txz filewherever you like, say in Downloads (your browser may put it there automatically). Then to actually install it, you need to use the command line. Open a terminal, become root, and run pkgtool. Choose the option to install packages. pkgtool will go through all packages in that directory in alphabetical order and ask if you want to install. Probably you'ill jut have this one, so you can say yes, but check the name and if there are any others, you may want to say no, and then it will move on to the next one.

If you're not used to the command line you may want to have a look at section 4.1 in the Salix Guide, which gives a quick intro:
http://docs.salixos.org/wiki/Salix_Startup_Guide

(have a look also at the section on package management).

Just in case, here are detailed instructions.
When you open the terminal, you will see a prompt ending in $. Mine looks like this:

Code: Select all

mimosa[~]$
The $ means you are your normal user, without superuser powers. To change to root (superuser) type su and enter the root password. Your prompt will now end in # instead of $.

When you are asked to type in code at the prompt, by convention, the $ or # is usually placed at the beginning to show whether or not you are meant to be root. But you don't type it. So here goes:

Code: Select all

$su [enter your root password]
#cd Downloads [move to where you put the downloaded package, but if it is in your home directory, you don't need to move]
#pkgtool
That should be it!

Re: mirror update

Posted: 18. Nov 2013, 11:27
by laprjns
Reposetup doesn't allow changing from one version repo to another (i.e. switching from 14.1 to 14.0) It only allows switching between mirror within a version. He needs to manually change the repo back to 14.0

Re: mirror update

Posted: 18. Nov 2013, 12:03
by mimosa
Darn!

In that case, I suggest you post the current contents of the configuration file here before doing anything. Just open a terminal and do

Code: Select all

cat /etc/slapt-get/slapt-getrc
and post the output here (copy and paste). Here is mine (for a 64-bit installation):


Code: Select all

mimosa[~]$ cat /etc/slapt-get/slapt-getrc
# Working directory for local storage/cache.
WORKINGDIR=/var/slapt-get

# Exclude package names and expressions.
# To exclude pre and beta packages, add this to the exclude:
#   [0-9\_\.\-]{1}pre[0-9\-\.\-]{1}
EXCLUDE=^aaa_elflibs,^aaa_base,^devs,^gcc.*,^glibc.*,^kernel-.*,^mcabber,^udev,^rootuser-settings,^salixtools*,^zzz-set
tings.*,-i?86-

# The Slackware repositories, including dependency information
SOURCE=http://download.salixos.org/x86_64/slackware-14.0/:OFFICIAL
SOURCE=http://download.salixos.org/x86_64/slackware-14.0/extra/:OFFICIAL

# The Salix repository
SOURCE=http://download.salixos.org/x86_64/14.0/:PREFERRED

# Local repositories
# SOURCE=file:///var/www/packages/:CUSTOM
mimosa[~]$ 
If your system is 32 bits, then it will be i486 in place of x86_64. To edit this file on your system, as root, use whichever text editor you like; I suggest geany or nano:

Code: Select all

#geany /etc/slapt-get/slapt-getrc

Re: mirror update

Posted: 18. Nov 2013, 17:33
by noob51
Thank You ,

here iis the output:

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-

I was going to try chown but am still learning how to do that, or sudo thunar.

still lost.

Re: mirror update

Posted: 18. Nov 2013, 17:49
by mimosa
Looks like you've deleted part of the file.

chown and thunar will not help with this. You need to restore the file to its original state and then leave it well alone.

Just follow the instructions above. As root, in a terminal, do

Code: Select all

#geany /etc/slapt-get/slapt-getrc
and make your file look like mine - with one important difference: you have 32-bit Salix, so you want to keep the -x86_64- at the end of the last line you pasted (this stops the package manager installing 64-bit packages); and equally, you want to point to the i486 repos instead of x86_64. So just copy the rest from mine (starting with the line beginning # The Slackware repositories ...) and paste it in the end of yours. Then change the three occurrences of x86_64 in the SOURCE lines to i486. The first one will look like this:

Code: Select all

SOURCE=http://download.salixos.org/i486/slackware-14.0/:OFFICIAL
EDIT

Just to be really clear, your file should look *exactly* like this:

Code: Select all

# Working directory for local storage/cache.
WORKINGDIR=/var/slapt-get

# Exclude package names and expressions.
# To exclude pre and beta packages, add this to the exclude:
#   [0-9\_\.\-]{1}pre[0-9\-\.\-]{1}
EXCLUDE=^aaa_elflibs,^aaa_base,^devs,^glibc.*,^kernel-.*,^udev,^rootuser-settings,^zzz-settings.*,-x86_64-

# The Slackware repositories, including dependency information
SOURCE=http://download.salixos.org/i486/slackware-14.0/:OFFICIAL
SOURCE=http://download.salixos.org/i486/slackware-14.0/extra/:OFFICIAL

# The Salix repository
SOURCE=http://download.salixos.org/i486/14.0/:PREFERRED

# Local repositories
# SOURCE=file:///var/www/packages/:CUSTOM
Just copy and paste. Then do an update and upgrade in gslapt - or, from the command line (as root):

Code: Select all

#slapt-get --update
#slapt-get --upgrade

Re: mirror update

Posted: 19. Nov 2013, 01:09
by noob51
Everything Fixed, Thanks to all who responded. Originally I cd'd to /etc but couldn't open slapt-get folder as $ or #. I wanted to run samba to a win7 box but that seems too advanced for now. I will try to learn more command line.


Thank You Again.

The Noob.