close Warning: Can't synchronize with repository "keplertools" (/srv/svn/keplertools does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#655 closed Defekt (ungültig)

Flash-Plugin muss manuell aktualisiert werden

Reported by: Rüdiger Kupper Owned by: bau
Priority: bald erledigen Milestone: Sommerferien 2012
Component: Server: Linux Terminal Server (LTSP) Severity: beeinträchtigt keinen Unterricht
Keywords: Cc:

Description

On 07/28/2012 12:52 PM, Administrator wrote:

Hallo Rüdiger,

bekommst du diese Mails auch jeden Tag von jedem LTSP-Server?

Grüße
Jens

> /etc/cron.daily/update-notifier-common:
> Traceback (most recent call last):
>   File "/usr/lib/update-notifier/package-data-downloader", line 234, in process_download_requests
>     dest_file = urllib.urlretrieve(files[i])[0]
>   File "/usr/lib/python2.7/urllib.py", line 93, in urlretrieve
>     return _urlopener.retrieve(url, filename, reporthook, data)
>   File "/usr/lib/python2.7/urllib.py", line 239, in retrieve
>     fp = self.open(url, data)
>   File "/usr/lib/python2.7/urllib.py", line 207, in open
>     return getattr(self, name)(url)
>   File "/usr/lib/python2.7/urllib.py", line 344, in open_http
>     h.endheaders(data)
>   File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
>     self._send_output(message_body)
>   File "/usr/lib/python2.7/httplib.py", line 814, in _send_output
>     self.send(msg)
>   File "/usr/lib/python2.7/httplib.py", line 776, in send
>     self.connect()
>   File "/usr/lib/python2.7/httplib.py", line 757, in connect
>     self.timeout, self.source_address)
>   File "/usr/lib/python2.7/socket.py", line 571, in create_connection
>     raise err
> IOError: [Errno socket error] [Errno 101] Network is unreachable
> flashplugin-installer: downloading http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.236.orig.tar.gz

Hallo,

die Meldung tritt immer dann auf, wenn das Flash-Plugin für Firefox aktualisiert wurde: Das Plugin liegt nicht in den Ubuntu-Paketquellen, sondern nur ein Tool, das es von woanders herunterlädt (flash-plugin-installer). Dieser Download scheitert dann am Proxy, weil sich beim automatisierten Update niemand authentifizieren kann.
Wenn man das Paket manuell neu installiert, wird man vom Proxy um sein Passwort gebeten und alles funktioniert.

Eine Möglicheite wäre, den URL im 253er Proxy freizuschalten (​http://archive.canonical.com/pool/partner/a/adobe-flashplugin/)

Dann müsste es ja ohne Authentifizierung gehen.

Change History (12)

comment:1 by Rüdiger Kupper, 14 years ago

Milestone: Schuljahr 2011/12 → Sommerferien 2012

comment:2 by bau, 14 years ago

Die URL ist im 253-proxy bereits freigeschaltet (dst_domain .canonical.com)

comment:3 by Rüdiger Kupper, 14 years ago

Ach so! Vermutlich kennt das Skript (/etc/cron.daily/update-notifier-common) den Proxy gar nicht. Apt kennt ihn ja auch nur, weil er in der apt-Konfiguration steht. Ich habe die folgenden Zeilen in /etc/crontab und /etc/anacrontab auf den LtspServern geschrieben:

http_proxy=http://10.32.1.253:3128
https_proxy=https://10.32.1.253:3128
ftp_proxy=ftp://10.32.1.253:3128

comment:4 by Rüdiger Kupper, 14 years ago

Resolution: → erledigt
Status: new → closed

Sehr gut! Heute morgen ist der Download bereits durchgelaufen, die Mails müsstest Du auch bekommen haben:

/etc/cron.daily/update-notifier-common:
flashplugin-installer: downloading http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.236.orig.tar.gz
Installing from local file /tmp/tmpubO6K9.gz
Flash Plugin installed.

Ist nur etwas blöd, dass das Skript auch bei Erfolg eine Ausgabe erzeugt, das sollten Cronskripte eigentlich nur bei Fehlern tun. So bekommen wir halt jedesmal eine Mail, obwohl alles funktioniert hat.

Super, wieder ein Problem gelöst :-)!

comment:5 by Rüdiger Kupper, 14 years ago

Priority: gering → normal
Resolution: erledigt
Status: closed → reopened
Type: Verbesserung → Defekt

Momentan schlägt der Update wieder fehl. Es scheint so, als ob diese Downloaddresse nicht durch den 253er-Proxy kommt:
​http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.251.orig.tar.gz

Ich dachte, dort wäre die ganze Domain *.canonical.com freigeschaltet? Hat sich da etwas geändert?

comment:6 by bau, 14 years ago

acl canonical	dstdomain	.canonical.com .launchpad.net
http_access allow canonical

sollte folglich unproblematisch über den proxy 10.32.1.253:3128 gehen.

comment:7 by bau, 14 years ago

geht auch tatsächlich:

export http_proxy=10.32.1.253:3128
linadmin@ltsp118:~$ wget http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.251.orig.tar.gz
--2012-12-12 22:32:42--  http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.251.orig.tar.gz
Verbindungsaufbau zu 10.32.1.253:3128... verbunden.
Proxy-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 14131200 (13M) [application/x-gzip]
In »»adobe-flashplugin_11.2.202.251.orig.tar.gz«« speichern.

100%[====================================================================================================================>] 14.131.200  3,24M/s   in 4,3s    

2012-12-12 22:32:47 (3,17 MB/s) - »»adobe-flashplugin_11.2.202.251.orig.tar.gz«« gespeichert [14131200/14131200]

comment:8 by Rüdiger Kupper, 14 years ago

Aber nicht per apt:

linadmin@ltsp126:~$ sudo apt-get install --reinstall flashplugin-installer 
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut       
Statusinformationen werden eingelesen... Fertig
0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 0 B von 8.036 B an Archiven heruntergeladen werden.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
Vorkonfiguration der Pakete ...
(Lese Datenbank ... 406672 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Ersetzen von flashplugin-installer 11.2.202.251ubuntu0.12.04.1 (durch .../flashplugin-installer_11.2.202.251ubuntu0.12.04.1_amd64.deb) ...
Ersatz für flashplugin-installer wird entpackt ...
Trigger für update-notifier-common werden verarbeitet ...
flashplugin-installer: downloading http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.251.orig.tar.gz
Traceback (most recent call last):
  File "/usr/lib/update-notifier/package-data-downloader", line 234, in process_download_requests
    dest_file = urllib.urlretrieve(files[i])[0]
  File "/usr/lib/python2.7/urllib.py", line 93, in urlretrieve
    return _urlopener.retrieve(url, filename, reporthook, data)
  File "/usr/lib/python2.7/urllib.py", line 239, in retrieve
    fp = self.open(url, data)
  File "/usr/lib/python2.7/urllib.py", line 207, in open
    return getattr(self, name)(url)
  File "/usr/lib/python2.7/urllib.py", line 344, in open_http
    h.endheaders(data)
  File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 814, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 776, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 757, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
IOError: [Errno socket error] [Errno 101] Network is unreachable

Hat sich die apt-Konfiguration geändert?

comment:9 by Rüdiger Kupper, 14 years ago

Nö, auch nicht:

linadmin@ltsp126:~$ cat /etc/apt/apt.conf
Acquire::http::Proxy "http://10.32.1.253:3128";
Acquire::ftp::proxy "ftp://10.32.1.253:3128";
Acquire::https::proxy "https://10.32.1.253:3128";
}}
Verstehe ich nicht.

comment:10 by bau, 14 years ago

Verstehe ich schon:
Der Adobe-Updater verwendet wget zum runterladen. wget braucht aber den export http_proxy= vorher :-)

comment:11 by Rüdiger Kupper, 14 years ago

Resolution: → ungültig
Status: reopened → closed

Ach! Klar! Mein Fehler. Ich hab folgendes versucht:

linadmin@ltsp126:~$ export http_proxy=http://10.32.1.253:3128
linadmin@ltsp126:~$ sudo apt-get install --reinstall flashplugin-installer

Und das schlägt fehl. Ist aber klar: Die erste Zeile setzt die Umgebungsvariable für den Nutzer "linadmin", aber das apt in der zweiten Zeile läuft als root.

So geht's:

linadmin@ltsp126:~$ sudo -s
[sudo] password for linadmin: 
root@ltsp126:~# export http_proxy=http://10.32.1.253:3128
root@ltsp126:~# apt-get install --reinstall flashplugin-installer 

Das muss man allerdings jedes mal von Hand machen, etwas blöd. Vielleicht fällt uns da noch was ein.

comment:12 by Rüdiger Kupper, 13 years ago

Wie ich eben sehe, habe ich versucht, den Umstand durch einen Eintrag in /etc/anacrontab auf den LtspServern zu beheben:

/etc/anacrontab
# /etc/anacrontab: configuration file for anacron

# See anacron(8) and anacrontab(5) for details.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# package flashplugin-installer needs to know the proxy:
# note: put this into /etc/crontab, too, in case anacron is removed
http_proxy=http://10.32.1.253:3128
https_proxy=https://10.32.1.253:3128
ftp_proxy=ftp://10.32.1.253:3128


# These replace cron's entries
1	5	cron.daily	 nice run-parts --report /etc/cron.daily
7	10	cron.weekly	 nice run-parts --report /etc/cron.weekly
@monthly	15	cron.monthly nice run-parts --report /etc/cron.monthly
/etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# package flashplugin-installer needs to know the proxy:
# note: put this into /etc/anacrontab, too, if anacron is installed
http_proxy=http://10.32.1.253:3128
https_proxy=https://10.32.1.253:3128
ftp_proxy=ftp://10.32.1.253:3128


# m h dom mon dow user	command
17 *	* * *	root    cd / && run-parts --report /etc/cron.hourly
25 6	* * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6	* * 7	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6	1 * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
#00 17	* * 5	root	shutdown -h now
Note: See TracTickets for help on using tickets.