slackpkg+ e upgrade-all [risolto]
Moderatore: Staff
1) Citare sempre la versione di Slackware64 usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware64, se l'argomento è Slackware32 o generale usate rispettivamente il forum Slackware o Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.
La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
slackpkg+ e upgrade-all [risolto]
# slackpkg upgrade-all
Checking local integrity... DONE
Looking for packages to upgrade. Please wait... grep: write error
grep: write error: Broken pipe
grep: write error
grep: write error
grep: write error
grep: write error
grep: write error
grep: write error: Broken pipe
grep: write error: Broken pipe
DONE
No packages match the pattern for upgrade. Try:
/usr/sbin/slackpkg install|reinstall
#
Le versioni di slackpkg e slackpkg+ installate sono:
slackpkg+-1.6.1-noarch-4mt
slackpkg-2.82.0-noarch-16
E' una regressione in slackpkg+?
Re: slackpkg+ e upgrade-all
- ponce
- Iper Master

- Messaggi: 2792
- Iscritto il: mer 5 mar 2008, 16:45
- Nome Cognome: Matteo Bernardini
- Slackware: slackware64-current
- Kernel: 5.8.16
- Desktop: lxde
- Località: Pisa
- Contatta:
Re: slackpkg+ e upgrade-all
- ZeroUno
- Staff

- Messaggi: 5325
- Iscritto il: ven 2 giu 2006, 14:52
- Nome Cognome: Matteo Rossini
- Slackware: current
- Kernel: slack-current
- Desktop: ktown-latest
- Distribuzione: 01000000-current
- Località: Roma / Castelli
- Contatta:
Re: slackpkg+ e upgrade-all
@cespo
il problema persiste?
posti il file di configurazione?
la 1.5.2 ha introdotto un bel po' di nuove funzionalità
Codice: Seleziona tutto
Version 1.5.2 - 18/Dec/2015
- Fixed a missed $ROOT
- Added SHOWORDER option. It's a way to sort packages in dialog box to help
reviewing large upgrade from many repositories. The SHOWORDER option
accepts "package" "repository" "tag" "path" "arch".
- Fixed some repository url. There are already some 14.2 repositories!!!
- slackpkg+ advise you to update the pkglist before use it
- Added a script in /usr/doc/slackpkg+-* to a fast check of repositories
- slackpkg -dialog=off now show repository name as with dialog
- Added SENSITIVE_SEARCH option to search case-insensitive
(thanks to phenixia2003)
- Important fixes in the priority manager. Many thanks to all people that
reported the bugs and a Big thanks to phenixia2003 for the fix. Now we need
your help to test it.
la slackpkg+-1.6.1-noarch-4mt ha introdotto un bug su slackware-14.1 (non -current) risolto dalla -5mt
eventualmente può anche essere utile eseguire
Codice: Seleziona tutto
# bash -x slackpkg upgrade-allGrazie
Matteo
Codice: Seleziona tutto
1011010 1100101 1110010 1101111 - 0100000 - 1010101 1101110 1101111Re: slackpkg+ e upgrade-all
Codice: Seleziona tutto
# ls /var/log/packages/ | grep slackpkg
slackpkg+-1.6.1-noarch-5mt
slackpkg-2.82.0-noarch-16
#Codice: Seleziona tutto
# slackpkg upgrade-all
Checking local integrity... DONE
Looking for packages to upgrade. Please wait... grep: write error
grep: write error
grep: write error
grep: write error
grep: write error
grep: write error
grep: write error
grep: write error: Broken pipe
grep: write error: Broken pipe
grep: write error: Broken pipe
grep: write error
DONE
No packages match the pattern for upgrade. Try:
/usr/sbin/slackpkg install|reinstall
#Codice: Seleziona tutto
# grep ^[^#] /etc/slackpkg/slackpkgplus.conf
SLACKPKGPLUS=on
VERBOSE=1
ALLOW32BIT=off
USEBL=1
WGETOPTS="--timeout=20 --tries=2"
CACHEUPDATE=off
GREYLIST=on
SENSITIVE_SEARCH=on
SHOWORDER=package
PKGS_PRIORITY=( multilib )
TAG_PRIORITY=off
REPOPLUS=( multilib slackpkgplus )
MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+/
MIRRORPLUS['multilib']=http://taper.alienbase.nl/mirrors/people/alien/multilib/current/
#Codice: Seleziona tutto
# bash -x slackpkg upgrade-all 2> log.txt- Allegati
-
log.txt- (94.25 KiB) Scaricato 106 volte
- ZeroUno
- Staff

- Messaggi: 5325
- Iscritto il: ven 2 giu 2006, 14:52
- Nome Cognome: Matteo Rossini
- Slackware: current
- Kernel: slack-current
- Desktop: ktown-latest
- Distribuzione: 01000000-current
- Località: Roma / Castelli
- Contatta:
Re: slackpkg+ e upgrade-all
Dopo gli do una occhiata.
Intanto buon anno.
Codice: Seleziona tutto
1011010 1100101 1110010 1101111 - 0100000 - 1010101 1101110 1101111- ZeroUno
- Staff

- Messaggi: 5325
- Iscritto il: ven 2 giu 2006, 14:52
- Nome Cognome: Matteo Rossini
- Slackware: current
- Kernel: slack-current
- Desktop: ktown-latest
- Distribuzione: 01000000-current
- Località: Roma / Castelli
- Contatta:
Re: slackpkg+ e upgrade-all
Al momento non sono riuscito ad individuare il problema. Gli stessi comandi da me non falliscono, ma ci sono anche altre persone che riscontrano lo stesso problema.
Codice: Seleziona tutto
1011010 1100101 1110010 1101111 - 0100000 - 1010101 1101110 1101111- ZeroUno
- Staff

- Messaggi: 5325
- Iscritto il: ven 2 giu 2006, 14:52
- Nome Cognome: Matteo Rossini
- Slackware: current
- Kernel: slack-current
- Desktop: ktown-latest
- Distribuzione: 01000000-current
- Località: Roma / Castelli
- Contatta:
Re: slackpkg+ e upgrade-all
Prova a darmi l'output del comando 'env' in un caso e nell'altro.
Codice: Seleziona tutto
1011010 1100101 1110010 1101111 - 0100000 - 1010101 1101110 1101111Re: slackpkg+ e upgrade-all
Faccio un install-new dopo ogni aggiornamento. Durante la prima installazione di slackware non ho installato kde, xfce e sorgenti del kernel (in pratica i pacchetti che nei mirror sono situati nelle directory k, kde, kdei, xfce)... è a questi che ti riferisci o ci sono anche altri pacchetti che mancano?ZeroUno ha scritto:non è questo il problema, ma per curiosità... da quanto tempo non dai un install-new? a detta del log ti mancano un po' di pacchetti.
Al momento non sono riuscito ad individuare il problema. Gli stessi comandi da me non falliscono, ma ci sono anche altre persone che riscontrano lo stesso problema.
Allego l'output di env dopo login come root e dopo login come utente + "sudo su -".ZeroUno ha scritto:però non capisco ancora questa storia del sudo su - o del login, cioè che funziona con uno e con l'altro no.
Prova a darmi l'output del comando 'env' in un caso e nell'altro.
P.S.: Facendo ulteriori test, ho notato questo:
Codice: Seleziona tutto
$ sudo su -
Password:
I hate mankind, for I think myself one of the best of them,
and I know how bad I am.
-- Samuel Johnson
# slackpkg upgrade-all
Checking local integrity... DONE
Looking for packages to upgrade. Please wait... grep: write error
grep: write error
grep: write error
grep: write error
grep: write error
grep: write error: Broken pipe
grep: write error
grep: write error
grep: write error: Broken pipe
grep: write error
DONE
No packages match the pattern for upgrade. Try:
/usr/sbin/slackpkg install|reinstall
# slackpkg upgrade-all
Checking local integrity... DONE
Looking for packages to upgrade. Please wait... grep: write error
grep: write error
grep: write error
grep: write error
grep: write error
grep: write error
grep: write error
grep: write error
grep: write error: Broken pipe
grep: write error
DONE
No packages match the pattern for upgrade. Try:
/usr/sbin/slackpkg install|reinstall
# exit
logout
$ sudo su -
But the greatest Electrical Pioneer of them all was Thomas Edison, who
was a brilliant inventor despite the fact that he had little formal
education and lived in New Jersey. Edison's first major invention in
1877, was the phonograph, which could soon be found in thousands of
American homes, where it basically sat until 1923, when the record was
invented. But Edison's greatest achievement came in 1879, when he
invented the electric company. Edison's design was a brilliant
adaptation of the simple electrical circuit: the electric company sends
electricity through a wire to a customer, then immediately gets the
electricity back through another wire, then (this is the brilliant
part) sends it right back to the customer again.
This means that an electric company can sell a customer the same batch
of electricity thousands of times a day and never get caught, since
very few customers take the time to examine their electricity closely.
In fact the last year any new electricity was generated in the United
States was 1937; the electric companies have been merely re-selling it
ever since, which is why they have so much free time to apply for rate
increases.
-- Dave Barry, "What is Electricity?"
# slackpkg upgrade-all
Checking local integrity... DONE
Looking for packages to upgrade. Please wait... DONE
No packages match the pattern for upgrade. Try:
/usr/sbin/slackpkg install|reinstall
# slackpkg upgrade-all
Checking local integrity... DONE
Looking for packages to upgrade. Please wait... DONE
No packages match the pattern for upgrade. Try:
/usr/sbin/slackpkg install|reinstall
# exit
logout
$ sudo su - (comando dato dopo aver lasciato aperta la shell una ventina di minuti per fare scadere la sessione di sudo)
Password:
Even though they raised the rate for first class mail in the United
States we really shouldn't complain -- it's still only 2 cents a day.
root@darkstar:~# slackpkg upgrade-all
Checking local integrity... DONE
Looking for packages to upgrade. Please wait... grep: write error
grep: write error: Broken pipe
grep: write error: Broken pipe
grep: write error
grep: write error
grep: write error
grep: write error
grep: write error: Broken pipe
grep: write error
DONE
No packages match the pattern for upgrade. Try:
/usr/sbin/slackpkg install|reinstall
# slackpkg upgrade-all
Checking local integrity... DONE
Looking for packages to upgrade. Please wait... grep: write error
grep: write error: Broken pipe
grep: write error
grep: write error: Broken pipe
grep: write error
grep: write error
grep: write error: Broken pipe
DONE
No packages match the pattern for upgrade. Try:
/usr/sbin/slackpkg install|reinstall
# exit
logout
$ sudo su -
The mark of a good party is that you wake up the next morning
wanting to change your name and start a new life in different city.
-- Vance Bourjaily, "Esquire"
# slackpkg upgrade-all
Checking local integrity... DONE
Looking for packages to upgrade. Please wait... DONE
No packages match the pattern for upgrade. Try:
/usr/sbin/slackpkg install|reinstall
# - Allegati
-
env_sudo.txt- (2.58 KiB) Scaricato 88 volte
-
env_root.txt- (2.6 KiB) Scaricato 91 volte
- ZeroUno
- Staff

- Messaggi: 5325
- Iscritto il: ven 2 giu 2006, 14:52
- Nome Cognome: Matteo Rossini
- Slackware: current
- Kernel: slack-current
- Desktop: ktown-latest
- Distribuzione: 01000000-current
- Località: Roma / Castelli
- Contatta:
Re: slackpkg+ e upgrade-all
Considera che io ho NOPASSWD:ALL in sudoers
Dopo faccio la controprova.
A questo punto per completezza fai la prova anche senza sudo, con solo su -
Codice: Seleziona tutto
1011010 1100101 1110010 1101111 - 0100000 - 1010101 1101110 1101111Re: slackpkg+ e upgrade-all
Mi ero dimenticato di scriverlo dopo il suggerimento di ponce, con "su -" funziona correttamente.ZeroUno ha scritto:A questo punto per completezza fai la prova anche senza sudo, con solo su -
- ZeroUno
- Staff

- Messaggi: 5325
- Iscritto il: ven 2 giu 2006, 14:52
- Nome Cognome: Matteo Rossini
- Slackware: current
- Kernel: slack-current
- Desktop: ktown-latest
- Distribuzione: 01000000-current
- Località: Roma / Castelli
- Contatta:
Re: slackpkg+ e upgrade-all
Edita /usr/libexec/slackpkg/functions.d/slackpkgplus.sh
cerca
Codice: Seleziona tutto
PKGINFOS=$(grep -n "^${DIR} " ${TMPDIR}/pkglist | grep -w "${PAT}" | grep -m 1 "^[[:digit:]]\+:${DIR} ${ARGUMENT} ")Codice: Seleziona tutto
PKGINFOS=$(grep -n "^${DIR} " ${TMPDIR}/pkglist | grep -w "${PAT}" | grep -m 1 "^[0-9]\+:${DIR} ${ARGUMENT} ")Codice: Seleziona tutto
1011010 1100101 1110010 1101111 - 0100000 - 1010101 1101110 1101111- ZeroUno
- Staff

- Messaggi: 5325
- Iscritto il: ven 2 giu 2006, 14:52
- Nome Cognome: Matteo Rossini
- Slackware: current
- Kernel: slack-current
- Desktop: ktown-latest
- Distribuzione: 01000000-current
- Località: Roma / Castelli
- Contatta:
Re: slackpkg+ e upgrade-all
$ sudo --remove-timestamp
prima di un
$ sudo su -
ma non ho verificato.
Codice: Seleziona tutto
1011010 1100101 1110010 1101111 - 0100000 - 1010101 1101110 1101111- ponce
- Iper Master

- Messaggi: 2792
- Iscritto il: mer 5 mar 2008, 16:45
- Nome Cognome: Matteo Bernardini
- Slackware: slackware64-current
- Kernel: 5.8.16
- Desktop: lxde
- Località: Pisa
- Contatta:
Re: slackpkg+ e upgrade-all
la soluzione, che ho imparato a mie spese gia' da un po', e' non usarlo.
- ZeroUno
- Staff

- Messaggi: 5325
- Iscritto il: ven 2 giu 2006, 14:52
- Nome Cognome: Matteo Rossini
- Slackware: current
- Kernel: slack-current
- Desktop: ktown-latest
- Distribuzione: 01000000-current
- Località: Roma / Castelli
- Contatta:
Re: slackpkg+ e upgrade-all
Comunque più tardi rilascio il workaround.
Codice: Seleziona tutto
1011010 1100101 1110010 1101111 - 0100000 - 1010101 1101110 1101111