Sterowanie zadaniami CRON'a

p4sst00h
Posts: 14
Joined: Wed Feb 10, 2016 7:57 pm

Post

Code: Select all

pi@raspberrypi ~ $ sudo apt-get update
Hit http://raspberrypi.collabora.com wheezy Release.gpg
Get:1 http://mirrordirector.raspbian.org wheezy Release.gpg [490 B]
Hit http://raspberrypi.collabora.com wheezy Release
Get:2 http://mirrordirector.raspbian.org wheezy Release [14.4 kB]
Hit http://archive.raspberrypi.org wheezy Release.gpg
Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages
Get:3 http://mirrordirector.raspbian.org wheezy/main armhf Packages [6,909 kB]
Hit http://archive.raspberrypi.org wheezy Release
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en_GB
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en
Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Get:4 http://mirrordirector.raspbian.org wheezy/contrib armhf Packages [23.6 kB]
Get:5 http://mirrordirector.raspbian.org wheezy/non-free armhf Packages [49.3 kB]
Get:6 http://mirrordirector.raspbian.org wheezy/rpi armhf Packages [592 B]
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Fetched 6,997 kB in 36s (193 kB/s)
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/dpkg/status
E: The package lists or status file could not be parsed or opened.
pi@raspberrypi ~ $
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

sudo rm /var/lib/dpkg/status
sudo touch /var/lib/dpkg/status
sudo apt-get update
SUPLA.... Nareszcie w domu.
p4sst00h
Posts: 14
Joined: Wed Feb 10, 2016 7:57 pm

Post

To pomogło, ale przy próbie instalacji php mam następny problem;

Code: Select all

Get:86 http://mirrordirector.raspbian.org/raspbian/ wheezy/main xml-core all 0.13+nmu2 [24.2 kB]
Fetched 41.8 MB in 32s (1,292 kB/s)
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
Extracting templates from packages: 34%E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
Extracting templates from packages: 69%E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
Extracting templates from packages: 100%
Selecting previously unselected package libc-bin.
(Reading database ... 47 files and directories currently installed.)
Unpacking libc-bin (from .../libc-bin_2.13-38+rpi2+deb7u10_armhf.deb) ...
Setting up libc-bin (2.13-38+rpi2+deb7u10) ...
Selecting previously unselected package gcc-4.8-base:armhf.
(Reading database ... 118 files and directories currently installed.)
Unpacking gcc-4.8-base:armhf (from .../gcc-4.8-base_4.8.2-21~rpi3rpi1_armhf.deb) ...
Setting up gcc-4.8-base:armhf (4.8.2-21~rpi3rpi1) ...
Selecting previously unselected package multiarch-support.
(Reading database ... 127 files and directories currently installed.)
Unpacking multiarch-support (from .../multiarch-support_2.13-38+rpi2+deb7u10_armhf.deb) ...
Selecting previously unselected package libc6:armhf.
Unpacking libc6:armhf (from .../libc6_2.13-38+rpi2+deb7u10_armhf.deb) ...
Selecting previously unselected package libgcc1:armhf.
dpkg: regarding .../libgcc1_1%3a4.8.2-21~rpi3rpi1_armhf.deb containing libgcc1:armhf, pre-dependency problem:
 libgcc1 pre-depends on multiarch-support
  multiarch-support is unpacked, but has never been configured.

dpkg: error processing /var/cache/apt/archives/libgcc1_1%3a4.8.2-21~rpi3rpi1_armhf.deb (--unpack):
 pre-dependency problem - not installing libgcc1:armhf
Errors were encountered while processing:
 /var/cache/apt/archives/libgcc1_1%3a4.8.2-21~rpi3rpi1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi ~ $ sudo apt-get install php5-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libc6 : Depends: libgcc1 but it is not going to be installed
 php5-cli : Depends: libbz2-1.0 but it is not going to be installed
            Depends: libcomerr2 (>= 1.01) but it is not going to be installed
            Depends: libdb5.1 but it is not going to be installed
            Depends: libgcc1 (>= 1:4.4.0) but it is not going to be installed
            Depends: libgssapi-krb5-2 (>= 1.6.dfsg.2) but it is not going to be installed
            Depends: libk5crypto3 (>= 1.6.dfsg.2) but it is not going to be installed
            Depends: libkrb5-3 (>= 1.6.dfsg.2) but it is not going to be installed
            Depends: libonig2 (>= 5.2.0) but it is not going to be installed
            Depends: libpcre3 (>= 8.10) but it is not going to be installed
            Depends: libqdbm14 (>= 1.8.74) but it is not going to be installed
            Depends: libssl1.0.0 (>= 1.0.0) but it is not going to be installed
            Depends: libxml2 (>= 2.8.0) but it is not going to be installed
            Depends: zlib1g (>= 1:1.1.4) but it is not going to be installed
            Depends: mime-support but it is not going to be installed
            Depends: php5-common (= 5.4.45-0+deb7u2) but it is not going to be installed
            Depends: libmagic1 but it is not going to be installed
            Depends: ucf but it is not going to be installed
            Depends: tzdata but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
pi@raspberrypi ~ $ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libgcc1
The following NEW packages will be installed:
  libgcc1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/54.2 kB of archives.
After this operation, 210 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
dpkg: regarding .../libgcc1_1%3a4.8.2-21~rpi3rpi1_armhf.deb containing libgcc1:armhf, pre-dependency problem:
 libgcc1 pre-depends on multiarch-support
  multiarch-support is unpacked, but has never been configured.

dpkg: error processing /var/cache/apt/archives/libgcc1_1%3a4.8.2-21~rpi3rpi1_armhf.deb (--unpack):
 pre-dependency problem - not installing libgcc1:armhf
Errors were encountered while processing:
 /var/cache/apt/archives/libgcc1_1%3a4.8.2-21~rpi3rpi1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

to jeszcze inaczej (ewentualnie można jakąś jeszcze starszą kopię przywrócić):

cd
cp /var/backups/dpkg.status.1.gz ./
gunzip dpkg.status.1.gz
sudo cp dpkg.status.1 /var/lib/dpkg/status

sudo apt-get update
SUPLA.... Nareszcie w domu.
p4sst00h
Posts: 14
Joined: Wed Feb 10, 2016 7:57 pm

Post

Był tam tylko z końcówką .0
Jak go przywróciłem to mam ten sam błąd co na początku.
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

Ewentualnie (gdyby starszych kopii nie było):

sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status
sudo apt-get update
sudo apt-get install php5-cli
SUPLA.... Nareszcie w domu.
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

A bez update.

sudo apt-get install php5-cli
SUPLA.... Nareszcie w domu.
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

Albo jeszcze taki manewr.


sudo rm /var/lib/dpkg/status
sudo touch /var/lib/dpkg/status
sudo apt-get update
sudo apt-get install libgcc1
sudo apt-get install php5-cli
SUPLA.... Nareszcie w domu.
p4sst00h
Posts: 14
Joined: Wed Feb 10, 2016 7:57 pm

Post

nadal to samo.
User avatar
pzygmunt
Posts: 20302
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Been thanked: 59 times

Post

Wrzucę na czystą kartę obraz z FTP-a i zobaczę czy mam ten sam problem.
SUPLA.... Nareszcie w domu.

Return to “Pomoc”