This is 'Stretching' me.... :( - Printable Version +- Forum (http://forum.xbian.org) +-- Forum: Software (/forum-6.html) +--- Forum: Installation (/forum-16.html) +--- Thread: This is 'Stretching' me.... :( (/thread-3953.html) |
This is 'Stretching' me.... :( - Skywatch - 31st Dec, 2017 07:01 AM Ok, So today I decided it was time to upgrade from jessie to stretch as the end of the year support was about to hit! First pi2 - success Second pi2 - success Third pi2 - Fail. I don't know why - I tried..... Terminal xbian@lounge2 ~ $ sudo dpkg --configure -a [sudo] password for xbian: sudo: unable to open /var/lib/sudo/ts/xbian: Read-only file system dpkg: error: unable to access dpkg status area: Read-only file system Also...... Terminal xbian@lounge2 ~ $ sudo apt-get autoremove [sudo] password for xbian: sudo: unable to open /var/lib/sudo/ts/xbian: Read-only file system W: Not using locking for read only lock file /var/lib/dpkg/lock E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. xbian@lounge2 ~ $ sudo reboot sudo: unable to execute /sbin/reboot: Input/output error xbian@lounge2 ~ $ sudo poweroff [sudo] password for xbian: Sorry, try again. [sudo] password for xbian: sudo: unable to open /var/lib/sudo/ts/xbian: Read-only file system sudo: unable to execute /sbin/poweroff: Input/output error So...what to try next please? - I am stuck! RE: This is 'Stretching' me.... :( - Nachteule - 31st Dec, 2017 08:01 AM Hmmm, I suppose your sd-card is broken You could try starting rescue system and run rum && btrfs check /dev/mmdblk0p2 and see what happens ... RE: This is 'Stretching' me.... :( - Skywatch - 31st Dec, 2017 08:17 AM Sd card is only used only for booting - system loads from usb drive (Sandisk). I guess that makes it a bit more complicated? ..... Or maybe not. Funnily enough, this as an exact copy of the system on the first pi upgraded with only changes to name, ip address,LCD screen and has been fine for months. Maybe I will revert back to latest image and try again. The first 2 upgrades exited 'gracefully' while this one went to a 'blank screen' and needed a hard reset (pulling the power)... Cheers RE: This is 'Stretching' me.... :( - Nachteule - 31st Dec, 2017 10:28 AM (31st Dec, 2017 08:17 AM)Skywatch Wrote: Sd card is only used only for booting - system loads from usb drive (Sandisk). I guess that makes it a bit more complicated? ..... Or maybe not. Ahhhh, ok Agree, if you have backup, it is much faster to restore system and try again. That's why we have backups RE: This is 'Stretching' me.... :( - Skywatch - 1st Jan, 2018 02:42 AM Removed SD card. Removed partitions and re-formated. Then tested with H2Wtest and all OK. Have yet to test USB stick, will do that next. Flashed image and working again. Will try upgrade again in next few days. Thanks. RE: This is 'Stretching' me.... :( - Skywatch - 3rd Jan, 2018 02:57 AM Hmm..... This did not go smoothly and I am stuck again. Xbian seems to work. Can ssh and http in. LCD display is fine and sound from server and internet plays fine with dac. But....when I try to VNC in and upgrade to stretch I keep getting a socket error not long after selecting the upgrade 'yes' option. So I connected a monitor to the pi and tried again. Now I see it reboot whenever I ask it to upgrade to stretch. It starts 'looking for' the upgradeable packages, then bang..... it reboots itself..... I am confused to say the least. RE: This is 'Stretching' me.... :( - Nachteule - 3rd Jan, 2018 03:04 AM Indeed, its confusing Already checked power supply? RE: This is 'Stretching' me.... :( - Skywatch - 3rd Jan, 2018 03:16 AM PSU not changed and no other problems. I noticed that this one was on 'staging' release and have now selected 'stable' instead - it has not rebooted this time and is still looking as I type this but mouse is still responsive too...so hoping. Activity LED solid green... Thank you for the fast reply! I feel a little less stressed now! RE: This is 'Stretching' me.... :( - Nachteule - 3rd Jan, 2018 03:20 AM Ehm, that's weird I have staging enabled @alll of my XBian's, never had issues when running a distribution upgrade RE: This is 'Stretching' me.... :( - Skywatch - 3rd Jan, 2018 03:50 AM So I wiped the sd card. D/l fresh backup from server. flashed card. Still the same problem. So will try dirty option as soon as I can. IT worked before in last emergency. And I was hoping things would be better in 2018 - but early days I suppose! RE: This is 'Stretching' me.... :( - Nachteule - 3rd Jan, 2018 04:01 AM Hmm, so your issue already has been backed up What's your 'dirty option' RE: This is 'Stretching' me.... :( - Skywatch - 3rd Jan, 2018 04:06 AM Dirty option is to flash with already upgraded image from another pi and just change the ip/name/mail/ etc to match this one... Oddly it works with sudo apt-get upadte, no trouble. Just for info is there a way to go to stretch from ssh? It is really confusing! RE: This is 'Stretching' me.... :( - Nachteule - 3rd Jan, 2018 04:19 AM (3rd Jan, 2018 04:06 AM)Skywatch Wrote: Dirty option is to flash with already upgraded image from another pi and just change the ip/name/mail/ etc to match this one... Oddly it works with sudo apt-get upadte, no trouble. Ah, ok Quote:Just for info is there a way to go to stretch from ssh? Sure, change everything from jessie -> stretch in file /etc/apt/sources.list and /etc/apt/sources.list.d/xbian.list and run sudo apt-get update; sudo apt-get dist-upgrade That's what xbian-config is running in background RE: This is 'Stretching' me.... :( - Skywatch - 3rd Jan, 2018 04:28 AM (3rd Jan, 2018 04:19 AM)Nachteule Wrote: Sure, change everything from jessie -> stretch in file /etc/apt/sources.list and /etc/apt/sources.list.d/xbian.list I wish I knew that a week ago! - Maybe it would work now? I just flashed an image from Nov24th to see if it is the same, but now I could just do that instead. Could I make a request for dist-upgrade option to be added to the ssh version of xbian-config? Would make it all a whole lot simpler! I did the edits and update-dist-upgrade and it's working! - Explain that one! RE: This is 'Stretching' me.... :( - Nachteule - 3rd Jan, 2018 04:43 AM (3rd Jan, 2018 04:28 AM)Skywatch Wrote: Could I make a request for dist-upgrade option to be added to xbian-config? Would make it all a whole lot simpler! You could, but I don't believe that I'm putting this into xbian-config CLI Ah, btw, you can run sudo xbian-config updates distupgrade prepare sudo xbian-config updates distupgrade execute sudo xbian-config updates progress (the first command modifies sources.list files, the second command runs dist-upgrade in background and the third command checks if upgrade process still running) |