This is 'Stretching' me.... :(
|
31st Dec, 2017, 07:01 AM
Post: #1
|
|||
|
|||
This is 'Stretching' me.... :(
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! |
|||
31st Dec, 2017, 08:01 AM
Post: #2
|
|||
|
|||
RE: This is 'Stretching' me.... :(
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 ... |
|||
31st Dec, 2017, 08:17 AM
Post: #3
|
|||
|
|||
RE: This is 'Stretching' me.... :(
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 |
|||
31st Dec, 2017, 10:28 AM
Post: #4
|
|||
|
|||
RE: This is 'Stretching' me.... :(
(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 |
|||
1st Jan, 2018, 02:42 AM
Post: #5
|
|||
|
|||
RE: This is 'Stretching' me.... :(
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. |
|||
3rd Jan, 2018, 02:57 AM
Post: #6
|
|||
|
|||
RE: This is 'Stretching' me.... :(
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. |
|||
3rd Jan, 2018, 03:04 AM
Post: #7
|
|||
|
|||
RE: This is 'Stretching' me.... :(
Indeed, its confusing
Already checked power supply? |
|||
3rd Jan, 2018, 03:16 AM
Post: #8
|
|||
|
|||
RE: This is 'Stretching' me.... :(
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! |
|||
3rd Jan, 2018, 03:20 AM
Post: #9
|
|||
|
|||
RE: This is 'Stretching' me.... :(
Ehm, that's weird
I have staging enabled @alll of my XBian's, never had issues when running a distribution upgrade |
|||
3rd Jan, 2018, 03:50 AM
Post: #10
|
|||
|
|||
RE: This is 'Stretching' me.... :(
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! |
|||
3rd Jan, 2018, 04:01 AM
Post: #11
|
|||
|
|||
RE: This is 'Stretching' me.... :(
Hmm, so your issue already has been backed up
What's your 'dirty option' |
|||
3rd Jan, 2018, 04:06 AM
Post: #12
|
|||
|
|||
RE: This is 'Stretching' me.... :(
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! |
|||
3rd Jan, 2018, 04:19 AM
(This post was last modified: 3rd Jan, 2018 04:23 AM by Nachteule.)
Post: #13
|
|||
|
|||
RE: This is 'Stretching' me.... :(
(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 |
|||
3rd Jan, 2018, 04:28 AM
Post: #14
|
|||
|
|||
RE: This is 'Stretching' me.... :(
(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! |
|||
3rd Jan, 2018, 04:43 AM
Post: #15
|
|||
|
|||
RE: This is 'Stretching' me.... :(
(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) |
|||
« Next Oldest | Next Newest »
|