Forum
dpkg error when running apt-get upgrade. - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Installation (/forum-16.html)
+--- Thread: dpkg error when running apt-get upgrade. (/thread-1391.html)

Pages: 1 2 3 4


RE: dpkg error when running apt-get upgrade. - Alexkvw - 15th Oct, 2013 10:06 PM

Did that, thanks. Sorry but i was mixing up issues. Updates are ok now, but i still get the below when upgrading (and similar when trying to install dev package via the config shell)

Terminal

Preconfiguring packages ...
Setting up initscripts (2.88dsf-41+deb7u1) ...
insserv: Service checkfs has to be enabled to start service mountall
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing initscripts (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initscripts
E: Sub-process /usr/bin/dpkg returned an error code (1)



RE: dpkg error when running apt-get upgrade. - mk01 - 15th Oct, 2013 10:43 PM

try this

http://forum.xbian.org/thread-1031-post-16448.html#pid16448


RE: dpkg error when running apt-get upgrade. - Alexkvw - 15th Oct, 2013 11:27 PM

Thanks! Should have found that thread myself Blush


RE: dpkg error when running apt-get upgrade. - mk01 - 15th Oct, 2013 11:48 PM

don't blame yourself.

the "issue" was caused by yesterday's Debian's Wheezy 7.2 and only today are starting people to report. (who hit the issue). Even my comment was 1h old.


RE: dpkg error when running apt-get upgrade. - Ghwomb - 16th Oct, 2013 04:35 AM

(15th Oct, 2013 09:18 PM)mk01 Wrote:  ok, can you recheck the pgp key stored in system? or reimport with

Code:
sudo -i
cd /tmp
wget http://xbian.brantje.com/xbian.gpg.key
apt-key add ./xbian.gpg.key

you should see OK after.

then apt-get clean; apt-get update ?

Did not work for me. I can upgrade packets recieved from http://mirrordirector.raspbian.org/raspbian/ wheezy/main but not the xbian server. Is there another server we can try?


RE: dpkg error when running apt-get upgrade. - mk01 - 16th Oct, 2013 04:57 AM

(16th Oct, 2013 04:35 AM)Ghwomb Wrote:  Did not work for me. I can upgrade packets recieved from http://mirrordirector.raspbian.org/raspbian/ wheezy/main but not the xbian server. Is there another server we can try?

the standard entry
Code:
deb mirror://apt.xbian.org/mirror.txt wheezy main

is a list of mirrors itself. going the other way around comment it out and try direct approach:
Code:
deb http://xbian.brantje.com wheezy main



RE: dpkg error when running apt-get upgrade. - Ghwomb - 16th Oct, 2013 05:33 AM

I commented out everything except
Code:
deb http://xbian.brantje.com wheezy main
in my /etc/apt/sources.list.

Now I can download the new packages but something is breaking the update:a


Terminal

root@Smultron:/home/xbian# apt-get update
Hit http://xbian.brantje.com wheezy Release.gpg
Hit http://xbian.brantje.com wheezy Release
Hit http://archive.raspberrypi.org wheezy Release.gpg
Hit http://xbian.brantje.com wheezy/main armhf Packages
Hit http://archive.raspberrypi.org wheezy Release
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Ign http://xbian.brantje.com wheezy/main Translation-en
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Reading package lists... Done
root@Smultron:/home/xbian# apt-get -u -o APT::Force-LoopBreak=1 install xbian-update
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
xbian-update : Depends: xbian-package-zram-swap (>= 1.0-2) but it is not going to be installed
PreDepends: kbd but it is not installable
PreDepends: xbian-package-config-xbmc (>= 1.1-1) but 1.0 is to be installed
PreDepends: xbian-package-xbmc (>= 2.3-0.2) but 2.2 is to be installed
PreDepends: xbian-package-kernel (>= 1.2-1) but it is not going to be installed
PreDepends: libc-bin (>= 2.13-38+rpi2) but 2.13-37+rpi1 is to be installed
PreDepends: libc-dev-bin (>= 2.13-38+rpi2) but 2.13-37+rpi1 is to be installed
PreDepends: libc6 (>= 2.13-38+rpi2) but 2.13-37+rpi1 is to be installed
PreDepends: libc6-dev (>= 2.13-38+rpi2) but 2.13-37+rpi1 is to be installed
PreDepends: libafpclient0 but it is not installable
PreDepends: python-sqlite but it is not installable
PreDepends: btrfs-tools but it is not installable
PreDepends: upstart but it is not installable
PreDepends: mountall but it is not installable
PreDepends: plymouth but it is not installable
PreDepends: btrfs-tools but it is not installable
PreDepends: xbian-package-config-shell (>= 2.1.3-1) but 2.0 is to be installed
PreDepends: xbian-package-cec (>= 1.1-0.2) but 1.0 is to be installed
PreDepends: xbian-package-splash (>= 1.0-0.6) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@Smultron:/home/xbian# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
xbian-package-cec xbian-package-config-shell xbian-package-config-xbmc xbian-package-kernel3.6.11 xbian-package-xbmc xbian-update
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.



RE: dpkg error when running apt-get upgrade. - mk01 - 16th Oct, 2013 06:20 AM

while looking at your package versions and http://archive.raspberrypi.org as source …

what version of XBIAN are you running? this looks very very old.

btw: XBian repo is not providing ALL packages, it is just supplement to underlying distro (raspbian) so you beside
deb http://xbian. …….

you need also the repo for raspbian. currently it is
Code:
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi

that's why i'm a bit confused about package lists from http://archive.raspberrypi.org your XBian still has.

add the second repo I posted and do "apt-get clean" before update. and try again.


RE: dpkg error when running apt-get upgrade. - Ghwomb - 16th Oct, 2013 07:07 AM

(16th Oct, 2013 06:20 AM)mk01 Wrote:  while looking at your package versions and http://archive.raspberrypi.org as source …

what version of XBIAN are you running? this looks very very old.
I am on XBian 1.0 Alpha 5. But there has always been packages held back. So that might explain the old packages. Since, almost, everything worked I have not reported any problems.

Quote:you need also the repo for raspbian. currently it is
Code:
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi

add the second repo I posted and do "apt-get clean" before update. and try again.

I uncommented the repo you suggested. Now the packages downloads and the upgrade starts. Apt refused to go past
Quote:To continue type in the phrase 'Yes, do as I say!'
. But after a few apt-clean and apt-upgrade it worked!

Thanks a lot for all the help!

Just a note that the upgrade is not finished yet. Currently it is "rebalancing filesystem". So perhaps there will be panic in my next post. But so far so good! If everything completes without further ado I'll try to post a summary of all the steps.


RE: dpkg error when running apt-get upgrade. - mk01 - 16th Oct, 2013 08:10 AM

if you are on Alpha5 and are doing upgrade, filesystem will be converted to btrfs. this can take a while !

actually if it rebalances already, it is converted. rebalance can be a long process too, so wait a bit.

@Ghwomb

I don't want make noise before the storm comes, but apt-get upgrade never installs kept-back packages. they needs to be specified by

Code:
apt-get install [list all kept back packages]

so even if finally dependencies matched for you and something has been installed, maybe it won't be full install as was mean to be. important moment would be to boot, then you can issue apt-get update & upgrade again and install kept back with apt-get install .

there is a thread somewhere describing the command which would allow upgrading all package in one step. If I remember correctly it was apt-get install xbian-update (with force -y and the -o loop).

just last note, beta2 is highly recommended over beta1.1 and I even think more milage with testing and even with direct upgrade from alpha5 directly to beta2.

anyhow report back.


RE: dpkg error when running apt-get upgrade. - Ghwomb - 16th Oct, 2013 08:49 AM

(16th Oct, 2013 08:10 AM)mk01 Wrote:  anyhow report back.

Everything went smooth. Although it was strange to see btrfs used. I did apt-get update and apt-get upgrade after. No report about anything kept back and the only thing that was upgraded was the kernel.

The various steps, in some kind of order. Read the thread for more information. I don't have the time to try to replicate the whole ordeal.

  1. First try the official steps once more!
  2. Become root
  3. cd /tmp
  4. wget http://xbian.brantje.com/xbian.gpg.key
  5. apt-key add ./xbian.gpg.key
  6. you should see OK after.
  7. apt-get clean && apt-get update
  8. Try step one once again.
  9. Comment out everything in /etc/apt/sources.list except deb http://xbian.brantje.com wheezy main and deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
  10. Do step seven then step one again.
  11. If you, like me, had problem with apt accepting when you type "Yes, do as I say!", repeat step 10 a few times. It took me over five times until it gets accepted.


As stated before: the upgrade will take some time so don't panic; take another coffee instead!


RE: dpkg error when running apt-get upgrade. - Skywatch - 16th Oct, 2013 11:55 PM

OK I just tried this and now I am stuck at 'closing xbmc' for half an hour. Is this normal? Can I safely unplug the power and restart?

OK I just tried this and now I am stuck at 'closing xbmc' for half an hour. Is this normal? Can I safely unplug the power and restart?


RE: dpkg error when running apt-get upgrade. - Ghwomb - 17th Oct, 2013 12:57 AM

(16th Oct, 2013 11:55 PM)Skywatch Wrote:  OK I just tried this and now I am stuck at 'closing xbmc' for half an hour. Is this normal? Can I safely unplug the power and restart?

OK I just tried this and now I am stuck at 'closing xbmc' for half an hour. Is this normal? Can I safely unplug the power and restart?

That did not happen to me and I don't have clue what is happening. I have a problem of my own. After a few (second ?) restart it is now stuck on init process...

Currently researching forums for a solution.


RE: dpkg error when running apt-get upgrade. - belese - 17th Oct, 2013 01:12 AM

(17th Oct, 2013 12:57 AM)Ghwomb Wrote:  restart it is now stuck on init process...
Currently researching forums for a solution.

remove splash from /boot/cmdline.txt
you will see error log on screen.


RE: dpkg error when running apt-get upgrade. - Skywatch - 17th Oct, 2013 01:13 AM

You are not alone! Tongue

The 'stuck on init process' is what I saw as well.

It powered off and restarted OK. On reboot it stalled again, then after that it won't reboot as it sticks at init around the 40% mark.

I have reflashed to an earlier image and that at least works for me.

Skywatch