Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Obecná podpora => Téma založeno: Harad 10 Června 2008, 19:27:19
-
Instaloval jsem balíček motion http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome (http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome) (bez kamerky, s tím, že ji dodám později - byl jsem líný ji vytahovat s šuplíku), a v průběhu instalace mi vypadl proud, nyní nemohu nic nainstalovat/updatovat systém:
janinus@einstein:~$ sudo apt-get update
[sudo] password for janinus:
Cíl http://archive.canonical.com hardy Release.gpg
Ign http://archive.canonical.com hardy/partner Translation-cs
Cíl http://security.ubuntu.com hardy-security Release.gpg
Ign http://security.ubuntu.com hardy-security/main Translation-cs
Ign http://security.ubuntu.com hardy-security/restricted Translation-cs
Ign http://security.ubuntu.com hardy-security/universe Translation-cs
Ign http://security.ubuntu.com hardy-security/multiverse Translation-cs
Cíl http://cz.archive.ubuntu.com hardy Release.gpg
Cíl http://cz.archive.ubuntu.com hardy/main Translation-cs
Cíl http://archive.ubuntu.com hardy Release.gpg
Cíl http://archive.canonical.com hardy Release
Cíl http://security.ubuntu.com hardy-security Release
Cíl http://archive.ubuntu.com hardy Release
Cíl http://cz.archive.ubuntu.com hardy/restricted Translation-cs
Cíl http://cz.archive.ubuntu.com hardy/universe Translation-cs
Ign http://cz.archive.ubuntu.com hardy/multiverse Translation-cs
Cíl http://cz.archive.ubuntu.com hardy-updates Release.gpg
Ign http://cz.archive.ubuntu.com hardy-updates/main Translation-cs
Ign http://cz.archive.ubuntu.com hardy-updates/restricted Translation-cs
Ign http://cz.archive.ubuntu.com hardy-updates/universe Translation-cs
Ign http://cz.archive.ubuntu.com hardy-updates/multiverse Translation-cs
Cíl http://cz.archive.ubuntu.com hardy-backports Release.gpg
Ign http://cz.archive.ubuntu.com hardy-backports/main Translation-cs
Ign http://cz.archive.ubuntu.com hardy-backports/restricted Translation-cs
Ign http://cz.archive.ubuntu.com hardy-backports/universe Translation-cs
Ign http://cz.archive.ubuntu.com hardy-backports/multiverse Translation-cs
Cíl http://cz.archive.ubuntu.com hardy Release
Cíl http://cz.archive.ubuntu.com hardy-updates Release
Cíl http://cz.archive.ubuntu.com hardy-backports Release
Cíl http://archive.canonical.com hardy/partner Packages
Cíl http://archive.canonical.com hardy/partner Sources
Cíl http://security.ubuntu.com hardy-security/main Packages
Cíl http://security.ubuntu.com hardy-security/restricted Packages
Cíl http://security.ubuntu.com hardy-security/restricted Sources
Cíl http://security.ubuntu.com hardy-security/main Sources
Cíl http://archive.ubuntu.com hardy/main Sources
Cíl http://security.ubuntu.com hardy-security/multiverse Sources
Cíl http://security.ubuntu.com hardy-security/universe Sources
Cíl http://security.ubuntu.com hardy-security/universe Packages
Cíl http://security.ubuntu.com hardy-security/multiverse Packages
Cíl http://archive.ubuntu.com hardy/restricted Sources
Cíl http://cz.archive.ubuntu.com hardy/main Packages
Cíl http://cz.archive.ubuntu.com hardy/restricted Packages
Cíl http://cz.archive.ubuntu.com hardy/restricted Sources
Cíl http://cz.archive.ubuntu.com hardy/main Sources
Cíl http://cz.archive.ubuntu.com hardy/multiverse Sources
Cíl http://cz.archive.ubuntu.com hardy/universe Sources
Cíl http://cz.archive.ubuntu.com hardy/universe Packages
Cíl http://cz.archive.ubuntu.com hardy/multiverse Packages
Cíl http://cz.archive.ubuntu.com hardy-updates/main Packages
Cíl http://cz.archive.ubuntu.com hardy-updates/restricted Packages
Cíl http://cz.archive.ubuntu.com hardy-updates/restricted Sources
Cíl http://cz.archive.ubuntu.com hardy-updates/main Sources
Cíl http://cz.archive.ubuntu.com hardy-updates/multiverse Sources
Cíl http://cz.archive.ubuntu.com hardy-updates/universe Sources
Cíl http://cz.archive.ubuntu.com hardy-updates/universe Packages
Cíl http://cz.archive.ubuntu.com hardy-updates/multiverse Packages
Cíl http://cz.archive.ubuntu.com hardy-backports/main Packages
Cíl http://cz.archive.ubuntu.com hardy-backports/restricted Packages
Cíl http://cz.archive.ubuntu.com hardy-backports/universe Packages
Cíl http://cz.archive.ubuntu.com hardy-backports/multiverse Packages
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
janinus@einstein:~$ sudo dpkg --configure -a
Nastavuji balík motion (3.2.10-0.ubuntu.hardy) ...
Starting motion detection : motion
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Unknown config option "sql_log_image"
[0] Unknown config option "sql_log_snapshot"
[0] Unknown config option "sql_log_mpeg"
[0] Unknown config option "sql_log_timelapse"
[0] Unknown config option "sql_query"
[0] Motion 3.2.10 Started
[0] ffmpeg LIBAVCODEC_BUILD 3352064 LIBAVFORMAT_BUILD 3344896
[0] Thread 1 is from /etc/motion/motion.conf
[1] Thread 1 started
[1] Failed to open video device /dev/video0: Device or resource busy
[1] Could not fetch initial image from camera
[1] Motion continues using width and height from config file(s)
[1] Resizing pre_capture buffer to 1 items
[0] httpd bind(): Address already in use
[0] httpd thread exit
[1] bind(): Address already in use
[1] Problem enabling stream server in port 8081: Address already in use
[1] Thread exiting
[0] Motion thread 1 restart
[1] Thread 1 started
[1] Failed to open video device /dev/video0: Device or resource busy
[1] Could not fetch initial image from camera
[1] Motion continues using width and height from config file(s)
[1] Resizing pre_capture buffer to 1 items
[1] bind(): Address already in use
[1] Problem enabling stream server in port 8081: Address already in use
[1] Thread exiting
[0] Motion thread 1 restart
[1] Thread 1 started
[1] Failed to open video device /dev/video0: Device or resource busy
[1] Could not fetch initial image from camera
[1] Motion continues using width and height from config file(s)
[1] Resizing pre_capture buffer to 1 items
[1] bind(): Address already in use
[1] Problem enabling stream server in port 8081: Address already in use
[1] Thread exiting
[0] Motion thread 1 restart
[1] Thread 1 started
[1] Failed to open video device /dev/video0: Device or resource busy
[1] Could not fetch initial image from camera
[1] Motion continues using width and height from config file(s)
[1] Resizing pre_capture buffer to 1 items
[1] bind(): Address already in use
[1] Problem enabling stream server in port 8081: Address already in use
[1] Thread exiting
[0] Motion thread 1 restart
[1] Thread 1 started
[1] Failed to open video device /dev/video0: Device or resource busy
[1] Could not fetch initial image from camera
[1] Motion continues using width and height from config file(s)
[1] Resizing pre_capture buffer to 1 items
[1] bind(): Address already in use
[1] Problem enabling stream server in port 8081: Address already in use
[1] Thread exiting
[0] Motion thread 1 restart
[1] Thread 1 started
[1] Failed to open video device /dev/video0: Device or resource busy
[1] Could not fetch initial image from camera
[1] Motion continues using width and height from config file(s)
[1] Resizing pre_capture buffer to 1 items
[1] bind(): Address already in use
[1] Problem enabling stream server in port 8081: Address already in use
[1] Thread exiting
[0] Motion thread 1 restart
[1] Thread 1 started
[1] Failed to open video device /dev/video0: Device or resource busy
[1] Could not fetch initial image from camera
[1] Motion continues using width and height from config file(s)
[1] Resizing pre_capture buffer to 1 items
[1] bind(): Address already in use
[1] Problem enabling stream server in port 8081: Address already in use
[1] Thread exiting
Prosím, poraďte mi, jak tento problém vyřešit.
-
v podstate jsem z toho vycetl, ze si stezuje, ze nemuze najit obraz z kamery a za se nemuze pripojit na port 8081, kterej uz je pry obsazenej...
zkusio bych pripojit tu kameru, co se stane
-
sorry - to jsem si nevšim :P
-
myslím, že na konci prvního kódu máte odpověď :
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
takže
sudo dpkg --configure -aa zkuste to znova ;)
a na začátku druhého výpisu je vidět, že už to provedl... bez úspěchu
-
v podstate jsem z toho vycetl, ze si stezuje, ze nemuze najit obraz z kamery a za se nemuze pripojit na port 8081, kterej uz je pry obsazenej...
zkusio bych pripojit tu kameru, co se stane
Kameru jsem připojil, byla to první věc, co mne napadla... bez úspěchu. V systému mám jen mplayer, mencoder a možná ještě pár dalších zbytečností (ale většinu věcí jsem odstranil hned po instalaci, neb stroj slouží jen (primárně) pro sdílení disku v síti a sdílení tiskárny -> funkčnost tohoto naštěstí není ohrožena). Jelikož se jedná o PIII 450MHz, 128MB RAM, tak Gnome jsem vyměnil za XFCE.
-
sudo dpkg -P motion
sudo apt-get update
sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get upgrade
a pak to motion zkuste instalnout znovu