Software > WeeWX

Nueva versión weewx 4.6.0 y 4.7.0

<< < (5/11) > >>

aerf:
Package: weewx
Installed-Size: desconocido
#!/bin/sh
#
# Copyright (c) 2006, 2008 Junio C Hamano
#
# The "pre-rebase" hook is run just before "git rebase" starts doing
# its job, and can prevent the command from running by exiting with
# non-zero status.
#
# The hook is called with the following parameters:
#
# $1 -- the upstream the series was forked from.
# $2 -- the branch being rebased (or empty when rebasing the current branch).
#
# This sample shows how to prevent topic branches that are already
# merged to 'next' branch from getting rebased, because allowing it
# would result in rebasing already published history.

publish=next
basebranch="$1"
if test "$#" = 2
then
   topic="refs/heads/$2"
else
   topic=`git symbolic-ref HEAD` ||
   exit 0 ;# we do not interrupt rebasing detached HEAD
fi

case "$topic" in
refs/heads/??/*)
   ;;
*)
   exit 0 ;# we do not interrupt others.
   ;;
esac

# Now we are dealing with a topic branch being rebased
# on top of master.  Is it OK to rebase it?

# Does the topic really exist?
git show-ref -q "$topic" || {
   echo >&2 "No such branch $topic"
   exit 1
}

# Is topic fully merged to master?
not_in_master=`git rev-list --pretty=oneline ^master "$topic"`
if test -z "$not_in_master"
then
   echo >&2 "$topic is fully merged to master; better remove it."
   exit 1 ;# we could allow it, but there is no point.
fi

# Is topic ever merged to next?  If so you should not be rebasing it.
only_next_1=`git rev-list ^master "^$topic" ${publish} | sort`
only_next_2=`git rev-list ^master           ${publish} | sort`
if test "$only_next_1" = "$only_next_2"
then
   not_in_topic=`git rev-list "^$topic" master`
   if test -z "$not_in_topic"
   then
      echo >&2 "$topic is already up to date with master"
      exit 1 ;# we could allow it, but there is no point.
   else
      exit 0
   fi
else
   not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"`
   /usr/bin/perl -e '
      my $topic = $ARGV[0];
      my $msg = "* $topic has commits already merged to public branch: \n";
      my (%not_in_next) = map {
         /^([0-9a-f]+) /;
         ($1 => 1);
      } split(/\n/, $ARGV[1]);
      for my $elem (map {
            /^([0-9a-f]+) (.*)$/;
            [$1 => $2];
         } split(/\n/, $ARGV[2])) {
         if (!exists $not_in_next{$elem->[0]}) {
            if ($msg) {
               print STDERR $msg;
               undef $msg;
            }
            print STDERR " $elem->[1]\n";
         }
      }
   ' "$topic" "$not_in_next" "$not_in_master"
   exit 1
fi

<<\DOC_END

This sample hook safeguards topic branches that have been
published from being rewound.

The workflow assumed here is:
Download-Size: desconocido
APT-Sources: http://weewx.com/apt/python3 buster/main all Packages
Description:

N: Hay 12 registros adicionales. Utilice la opción «-a» para verlos.

jmviper:
Qué cosa más rara tienes... a mí me sale esto y es lo que debería de salir:


--- Citar ---Package: weewx
Version: 4.8.0-1
Priority: optional
Section: science
Maintainer: Tom Keffer <[email protected]>
Installed-Size: 6.119 kB
Pre-Depends: debconf
Depends: python3 (>= 3.5) | python (>= 3.5), python3-configobj, python3-cheetah, python3-pil, python3-serial, python3-usb, lsb-base
Suggests: sqlite, rsync, ftp, httpd, python3-dev, python3-pip
Homepage: http://www.weewx.com
Download-Size: 1.364 kB
APT-Manual-Installed: yes
APT-Sources: http://weewx.com/apt/python3 buster/main all Packages
Description: weather software
 weewx interacts with a weather station to produce graphs, reports, and HTML
 pages. weewx can upload data to weather services such as WeatherUnderground,
 PWSweather.com, or CWOP.
 .
 This is the python3 configuration of weewx

N: Hay 12 registros adicionales. Utilice la opción «-a» para verlos.
--- Fin de la cita ---

debes de tener algo mal lo cual puede ser el origen de tus problemas.

Haz los pasos para poner el repositorio de weewx:

http://weewx.com/apt/

Ponle la versión de python3 y a ver si actualiza y lo instala.

Eso debería de arreglar por lo menos el problema de actualizar weewx. Si hay más problemas habrá que verlos.

aerf:
Mas errores ...  :;


--- Código: ---pi@weewx:/ $ curl -s http://weewx.com/keys.html | sudo apt-key add -
OK
pi@weewx:/ $ curl -s http://weewx.com/apt/weewx-python3.list | sudo tee /etc/apt/sources.list.d/weewx.list
deb [arch=all] http://weewx.com/apt/python3 buster main
pi@weewx:/ $ sudo apt-get update
Obj:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Obj:2 http://archive.raspberrypi.org/debian buster InRelease         
Obj:3 http://weewx.com/apt/python3 buster InRelease                   
Leyendo lista de paquetes... ¡Error!       
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_buster_main_binary-armhf_Packages
E: No se pudieron analizar o abrir las listas de paquetes o el archivo de estado.
--- Fin del código ---

jmviper:
Puede que tengas algo corrupto en la SD. Si sigue dando porblemas de esos te recomendaría que la cambiases por otra.

Ejecuta los siguiente comandos uno destrás de otro:

sudo rm /var/lib/apt/lists/* -vf

sudo apt update

sudo apt upgrade

sudo apt dist-upgrade

sudo apt autoclean

sudo apt autoremove

sudo reboot now

No te aseguro que durante el proceso no puedan salir más errores, según como he dicho si hay corrupción en la tarjeta.

Si no va bien la operación, tarjeta nueva y copia la BBDD de weewx en un PC o pendrive y la carpeta /etc/weewx e instalar raspbian en la nueva tarjeta y empezar de nuevo instalando repositorio de weewx, weewx, copiando su carpeta y su BBDD.



aerf:
Nada, estará mal com dices, gracias jmviper, instalaré todo en tarjeta nueva ...
Guardo la BBDD de /var/lib/weewx y la carpeta de weewx. Ya me pondré a meter a mano los valores desde mayo hasta julio ... :; :; :; :;
Gracias por la ayuda!


--- Código: ---pi@weewx:~ $ sudo rm /var/lib/apt/lists/* -vf
'/var/lib/apt/lists/archive.raspberrypi.org_debian_dists_buster_InRelease' borrado
'/var/lib/apt/lists/archive.raspberrypi.org_debian_dists_buster_main_binary-armhf_Packages' borrado
rm: no se puede borrar '/var/lib/apt/lists/auxfiles': Es un directorio
'/var/lib/apt/lists/lock' borrado
rm: no se puede borrar '/var/lib/apt/lists/partial': Es un directorio
'/var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_buster_contrib_binary-armhf_Packages' borrado
'/var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_buster_InRelease' borrado
'/var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_buster_main_binary-armhf_Packages' borrado
'/var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_buster_non-free_binary-armhf_Packages' borrado
'/var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_buster_rpi_binary-armhf_Packages' borrado
'/var/lib/apt/lists/weewx.com_apt_python3_dists_buster_InRelease' borrado
'/var/lib/apt/lists/weewx.com_apt_python3_dists_buster_main_binary-all_Packages' borrado
pi@weewx:~ $ sudo apt update
Des:1 http://archive.raspberrypi.org/debian buster InRelease [32,6 kB]
Des:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB]         
Des:3 http://weewx.com/apt/python3 buster InRelease [3.907 B]                       
Des:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13,0 MB]
Des:5 http://archive.raspberrypi.org/debian buster/main armhf Packages [391 kB]
Des:6 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Packages [58,8 kB]                                                                                                                               
Des:7 http://raspbian.raspberrypi.org/raspbian buster/non-free armhf Packages [104 kB]                                                                                                                               
Des:8 http://weewx.com/apt/python3 buster/main all Packages [3.083 B]                                                                                                                                                 
Des:9 http://raspbian.raspberrypi.org/raspbian buster/rpi armhf Packages [1.360 B]                                                                                                                                   
Descargados 13,6 MB en 49s (281 kB/s)                                                                                                                                                                                 
Leyendo lista de paquetes... ¡Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/dpkg/status
E: No se pudieron analizar o abrir las listas de paquetes o el archivo de estado.
pi@weewx:~ $ sudo apt upgrade
Leyendo lista de paquetes... ¡Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/dpkg/status
E: No se pudieron analizar o abrir las listas de paquetes o el archivo de estado.
pi@weewx:~ $ sudo apt dist-upgrade
Leyendo lista de paquetes... ¡Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/dpkg/status
E: No se pudieron analizar o abrir las listas de paquetes o el archivo de estado.
pi@weewx:~ $ sudo apt autoclean
Leyendo lista de paquetes... ¡Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/dpkg/status
E: No se pudieron analizar o abrir las listas de paquetes o el archivo de estado.
pi@weewx:~ $ sudo apt autoremove
Leyendo lista de paquetes... ¡Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/dpkg/status
E: No se pudieron analizar o abrir las listas de paquetes o el archivo de estado.
--- Fin del código ---

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

[*] Página Anterior

Ir a la versión completa