Re: pkg problems

Paolo Tealdi <[email protected]> Mon, 15 Sep 2014 10:35:45 +0200
Newsgroups gmane.os.freebsd.italian.aiuto
Organization Politecnico di Torino - Area IT
Message-ID <[email protected]>
Il 15/09/2014 09:57, Francesco Steno ha scritto:
> Salve …
>     .. non so se a causa di un ripristino di un disco in RAID 1 che ho ripristinato, oppure a causa di
> una mia distrazione,  fatto sta che dopo aver lanciato un portsnap fetch update,
> ,  do un occhiata per trovare qualche corrispondenza tra l’output di  pkg_version -l “<“ ed il file UPDATING …
>
> così lancio
>
>
> overdrive@ FaipRyLp /usr/ports]$ sudo portmaster -a
> Password:
> ===>>> Gathering distinfo list for installed ports
>
> ===>>> Starting check of installed ports for available updates
>
> 	===>>> The databases/db42 port moved to databases/db48
> 	===>>> Reason: Superseded by databases/db48
>
> ===>>> Launching child to reinstall db42-4.2.52_5
>
> ===>>> All >> db42-4.2.52_5 (1/1)
>
> 	===>>> The databases/db42 port moved to databases/db48
> 	===>>> Reason: Superseded by databases/db48
>
>
> ===>>> Currently installed version: db48-4.8.30.0_2
> ===>>> Port directory: /usr/ports/databases/db48
>
> ===>>> Launching 'make checksum' for databases/db48 in background
> ===>>> Gathering dependency list for databases/db48 from ports
> ===>>> Launching child to install ports-mgmt/pkg
>
> ===>>> All >> db48-4.8.30.0_2 >> ports-mgmt/pkg (2/2)
>
> ===>>> Port directory: /usr/ports/ports-mgmt/pkg
>
> ===>>> Launching 'make checksum' for ports-mgmt/pkg in background
> ===>>> Gathering dependency list for ports-mgmt/pkg from ports
> ===>>> No dependencies for ports-mgmt/pkg
>
> ….
> ….
> ===>>> The following actions will be taken if you choose to proceed:
> 	Re-install db48-4.8.30.0_2
> 	Install ports-mgmt/pkg
>
> [snip]
>
> ===>>> Proceed? y/n [y] y
>
> [snip]
>
> ===>  Installing for pkg-1.3.7
> ===>  Checking if pkg already installed
> pkg-static: PACKAGESITE in pkg.conf is no longer supported.  Convert to the new repository style.  See pkg.conf(5)
> pkg-static: Cannot parse configuration file!
> *** [check-already-installed] Error code 70
>
> Stop in /usr/ports/ports-mgmt/pkg.
> *** [/usr/ports/ports-mgmt/pkg/work/.install_done.pkg._usr_local] Error code 1
>
> Stop in /usr/ports/ports-mgmt/pkg.
>
> ===>>> Installation of pkg-1.3.7 (ports-mgmt/pkg) failed
> ===>>> Aborting update
>
> ===>>> Update for ports-mgmt/pkg failed
> ===>>> Aborting update
>
> ===>>> Update for databases/db48 failed
> ===>>> Aborting update
>
>
> ===>>> You can restart from the point of failure with this command line:
>         portmaster <flags> databases/db48 ports-mgmt/pkg … [lista di altri aggiornamenti..]
>
>
> è possibile che qualcosa sia andato perso ?
>
> [overdrive@ FaipRyLp /usr/ports/ports-mgmt/pkg]$ sudo make deinstall
> Password:
> ===>  Deinstalling for pkg
> pkg-static: PACKAGESITE in pkg.conf is no longer supported.  Convert to the new repository style.  See pkg.conf(5)
> pkg-static: Cannot parse configuration file!
> ===>   pkg not installed, skipping
>
> ??? il file pkg.conf, io non l’ho toccato …
>
> [overdrive@ FaipRyLp /usr/local/etc]$ more pkg.conf
> packagesite: http://pkg.FreeBSD.org/freebsd:9:x86:64/latest
>
>
> qualche consiglio su come procedere ?
>
>

Ciao,

Sei passato a pkg, suppongo.
Devi configurare correttamente pkg.conf, togliendo la variabile PACKAGESITE e creando in /usr/local/bin/pkg/repos uno/più files di configurazione,
tramite i quali accedi ai packages.
Puoi creare un deposito locale con poudriere, che ha senso se hai molti sistemi da gestire con package configurati in modo non default.
Il più  semplice è /usr/local/etc/pkg/repos/FreeBSD.conf :

--- FreeBSD.conf
FreeBSD: { enabled: yes }
--- /FreeBSD.conf

Comunque se usi i ports con portmaster probabilmente basta levare la variabile PACKAGESITE da /usr/local/etc/pkg.conf

Ciao,
Paolo





-- 
Ing. Paolo Tealdi         Area IT - Politecnico Torino
Telefono/Phone : +39-011-0906714 , FAX : +39-011-0906799
Indirizzo/Address : C.so Duca degli Abruzzi,  24 - 10129 Torino - ITALY
Skype : tealdi.paolo
Please consider your environmental responsibility before printing this e-mail

_______________________________________________
Aiuto mailing list
[email protected]
http://mailman.gufi.org/mailman/listinfo/aiuto