Manolis Kiagias sonicy at otenet.gr
Thu Jun 3 21:41:24 UTC 2010

On 04/06/2010 12:01 π.μ., Andy Hiscock wrote:
> LOL - now stuck in and endless loop of:
>  Message ─────────────────────────────┐
>       │Unable to get packages/INDEX file from selected media.   
> This is like a poorly written shareware app!
>   Really getting pissd here!

My guess is you need to do some reading first, it seems you are
administering a system you don't quite understand.
When doing a minor version upgrade (i.e. from 7.0 to 7.2) there is no
need to touch anything in the extra programs you've installed (hint:
those that come from packages or ports). Minor versions are binary
compatible (few apps may need some attention but this is rare). When you
do a major upgrade, you will be able to execute your 7.x installed apps
on 8.x. But by the time you start installing programs to your new
version, you will start replacing libraries of the 7.x system with new
ones and the programs compiled for 7.x will stop functioning.  My guess
is you already installed some packages from the 8.0 media, so this has
happened already.

The recommended path for such an upgrade is to upgrade all your
installed ports for your new system. Most people use ports (meaning they
build the software on their own machine, it is quite straightforward and
mostly automated) but it seems you are using packages. It should still
be possible to do this.

Please read the following section in the FreeBSD Handbook:


esp. 24.2.3

When upgrading from packages, change the command:

portupgrade -af


portupgrade -af -PP

which effectively means: "Use packages only"

And yes, you will need a ports tree for portupgrade to work properly
(although you won't be compiling anything). You don't need to keep it
afterwords but it is handy to have and does not consume a lot of space.
So get one:

 portsnap fetch extract

And after finishing the upgrade, you can rm -rf /usr/ports if you don't
want to keep it.
You may wish to have a good read of the FreeBSD Handbook, esp. chapter 4
that deals with ports and packages.

More information about the freebsd-questions mailing list