LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 12-13-2020, 09:52 AM   #1
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,435
Blog Entries: 3

Rep: Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532
Upgrade-all fails on rpi4


Hi,

I'm trying to upgrade my pi4 via ssh. It hasn't been touche for a White.

What works :
- Sarpi updates ok
- Upgrade of glibc-solibs, pkgtools, bash and tmux ok
- Install-new ok

What I can't achieve :
- Upgrade-all from slackpkg or downloaded repo gives unfinished upgrade and everything segfaulting, even su or reboot.

When hard rebooted (plugged out/in), I have everything to start again (even installed packages have to be re-installed ). And I can't find logs.

Is it lack of space ? (Already moved packages to external disk)
Special arm upgrade order ?

Any hint would be apreciate !

Last edited by Tonus; 12-14-2020 at 04:33 AM. Reason: Clarity ans syntax. Shall not write posts so late
 
Old 12-14-2020, 06:35 AM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,647

Rep: Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358
Quote:
Originally Posted by Tonus View Post
Hi,

I'm trying to upgrade my pi4 via ssh. It hasn't been touche for a White.
What version of the distribution? 14.2 or -current?

Quote:
What I can't achieve :
- Upgrade-all from slackpkg or downloaded repo gives unfinished upgrade and everything segfaulting, even su or reboot.
And I can't find logs.
I can't think of any reason that you'd get segfaults for, unless you did something like install packages from -current on 14.2 or vice versa, or your system's totally broken.

Look at the output of dmesg - perhaps it'll show you some file system or storage errors.

Quote:
Special arm upgrade order ?
No.
 
Old 12-14-2020, 12:14 PM   #3
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,435

Original Poster
Blog Entries: 3

Rep: Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532
Thanks for your reply !

I'm on current and will triple check my update configuration and dmesg.

If nothing arises I bet it could be sdcard failing or some black magic then go installing from fresh...
 
Old 12-14-2020, 05:30 PM   #4
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,398

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Not had any issues with couple my rpi sarpi installs or my bananapi pro install

good guess about failing sdcard, is there like some smartctrl, hdparm utility to identify issues for sdcards?

I've not had to worry about investigating questionable sdcard not sure how to investigate

let us know what if you find out what problem might be
 
Old 12-15-2020, 03:26 AM   #5
TheTKS
Member
 
Registered: Sep 2017
Location: Ontario, Canada
Distribution: Slackware, X/ubuntu, MX Linux, OpenBSD, OpenWrt
Posts: 383

Rep: Reputation: 254Reputation: 254Reputation: 254
Quote:
Originally Posted by Tonus View Post
Hi,

I'm trying to upgrade my pi4 via ssh. It hasn't been touche for a White.
...

What I can't achieve :
...

- Upgrade-all from slackpkg or downloaded repo gives unfinished upgrade and everything segfaulting, even su or reboot.
...

Is it lack of space ? (Already moved packages to external disk)
I had an update/upgrade failure of -current with Xfce on a 16 GB SD card on RPi 4.

I hadn’t done sarpi updates yet. I was going to leave that until the end.

install-new went fine. There weren’t many packages in that.

The failure happened during upgrade-all. There were a lot of packages in that.

I hadn’t checked my available space before updating, and filled the card in the middle of the update/upgrade. I didn’t take a screenshot with my phone but saw several messages about packages not installed because disk full, despite not doing a full installation in order to save space (emacs, bsd-games, and Calligra and KDE l10ns.)

I am able to access files from my Sackware 14.2. (I opened a few from there after plugging the SD card into a card reader.)

This was (would have been) a big update and upgrade. I last updated early October, so today’s update would have included the upgrade to Xfce 4.14 and KDE 5. [Edit: drmozes notes in the next post that Xfce 4.14 and KDE5 upgrades are on their way.]

I expect I could have avoided the failure by doing the update/upgrade in smaller pieces rather than trying to swallow it whole, while keeping an eye on SD card capacity (or maybe by updating more often, or by using a bigger SD card, or maybe even by keeping /home on separate storage.)

That’s as far as I’ve taken it. I’m not sure yet if this installation is salvageable, or worth the time to try. It might be faster, or even only possible, to retrieve the few files I want and reinstall.

TKS

Last edited by TheTKS; 12-15-2020 at 07:55 AM. Reason: Correction about upgrades
 
Old 12-15-2020, 07:01 AM   #6
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,647

Rep: Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358
Quote:
Originally Posted by TheTKS View Post
This was (would have been) a big update and upgrade. I last updated early October, so today’s update would have included the upgrade to Xfce 4.14 and KDE 5.
Not yet - I didn't build either of those but they are queued up.

Quote:
I expect I could have avoided the failure by doing the update/upgrade in smaller pieces rather than trying to swallow it whole, while keeping an eye on SD card capacity (or maybe by updating more often, or by using a bigger SD card, or maybe even by keeping /home on separate storage.)
You should to consume the updates by the 'batch' as any dependencies will (unless we missed any!) be included within that batch to maintain stability of the OS.
Just make sure there's enough space to house the downloaded files and some buffer on the OS to handle the package as it's being installed. The root filesystem should have at least (I reckon) a few hundred MB's free, even if your logs don't occupy space on the same filesystem.

Quote:
That’s as far as I’ve taken it. I’m not sure yet if this installation is salvageable, or worth the time to try. It might be faster, or even only possible, to retrieve the few files I want and reinstall.
It sounds like your OS is in bad state. It's going to be easier to reinstall it as you'd have to prop it up to some extent even to get pkgtools working.
 
1 members found this post helpful.
Old 12-15-2020, 07:49 AM   #7
TheTKS
Member
 
Registered: Sep 2017
Location: Ontario, Canada
Distribution: Slackware, X/ubuntu, MX Linux, OpenBSD, OpenWrt
Posts: 383

Rep: Reputation: 254Reputation: 254Reputation: 254
Quote:
Originally Posted by drmozes View Post
You should to consume the updates by the 'batch' as any dependencies will (unless we missed any!) be included within that batch to maintain stability of the OS.

Just make sure there's enough space to house the downloaded files and some buffer on the OS to handle the package as it's being installed. The root filesystem should have at least (I reckon) a few hundred MB's free, even if your logs don't occupy space on the same filesystem.

It sounds like your OS is in bad state. It's going to be easier to reinstall it as you'd have to prop it up to some extent even to get pkgtools working.
Stuart, thanks for the tip on installing in batches.

When I first installed, I had (if I remember right) a couple of GB free, but clearly haven’t been practicing good OS hygiene since.

No surprise that saving a few files, installing a few extra packages and some logs can add up to a couple of GB after a year, especially if, say, you never delete your old kernel txz files! I will certainly watch disk capacity more closely in future.

TKS
 
1 members found this post helpful.
Old 12-17-2020, 03:17 AM   #8
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware ARM, AArch64
Posts: 1,069

Rep: Reputation: 687Reputation: 687Reputation: 687Reputation: 687Reputation: 687Reputation: 687
Quote:
Originally Posted by drmozes View Post
The root filesystem should have at least (I reckon) a few hundred MB's free, even if your logs don't occupy space on the same filesystem.
I've 'killed' more than a few installs/builds/upgrades by not having enough working disk space available on the system.
 
Old 12-20-2020, 04:20 PM   #9
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,435

Original Poster
Blog Entries: 3

Rep: Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532
Thanks for your inputs.

I finally had the time to dig in this but with no real succes : I should have enough space but 85% of the root partition is used, even after a good cleanup and I think this isn't enough for massive upgrade.

I moved slackpkg downloads on a side disk, as a lot of other stuff and will soon try to resize that or grab a new and slightly bigger sdcard.

All services are up and running, let's stick to that for the moment !
 
Old 12-20-2020, 05:25 PM   #10
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware ARM, AArch64
Posts: 1,069

Rep: Reputation: 687Reputation: 687Reputation: 687Reputation: 687Reputation: 687Reputation: 687
Quote:
Originally Posted by Tonus View Post
Thanks for your inputs.

I finally had the time to dig in this but with no real succes : I should have enough space but 85% of the root partition is used, even after a good cleanup and I think this isn't enough for massive upgrade.
You can connect a USB stick to the RPi4, partition it, format it however you like, mount it, and use that as extra space.

Last edited by Exaga; 12-20-2020 at 05:28 PM. Reason: the order of things
 
Old 12-21-2020, 03:05 AM   #11
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,435

Original Poster
Blog Entries: 3

Rep: Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532
I already have a 500G hard drive on this one and moved some things around. I believe it's not enough...
 
Old 12-21-2020, 12:30 PM   #12
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware ARM, AArch64
Posts: 1,069

Rep: Reputation: 687Reputation: 687Reputation: 687Reputation: 687Reputation: 687Reputation: 687
When I'm building/testing/playing with sarpi shizzle I generally use SD cards, which are usually 64GB capacity. I think only the RPi (1) uses a 32GB SD card now in my build setup.

I have a 480GB SSD with slackware arm installed on it which I use on the RPi4 and I won't fill that up in a hurry. I also have a 60GB SSD with ubuntu on it at the moment.
 
Old 12-22-2020, 08:24 AM   #13
TheTKS
Member
 
Registered: Sep 2017
Location: Ontario, Canada
Distribution: Slackware, X/ubuntu, MX Linux, OpenBSD, OpenWrt
Posts: 383

Rep: Reputation: 254Reputation: 254Reputation: 254
SlackwareARM -current installed to a new 64GB SD micro card and working well running Xfce.

Thanks again to Pat and team, drmozes and Exaga for Slackware, SlackwareARM and Sarpi.

I was going to reinstall to my original 16GB SD card after filling the card and corrupting Slackware during an update, but something else happened (no idea if due to my abuse or just worn out.) After wiping the card, it won't accept a new partition table via KDEParted or GParted.

In any case, 16GB is getting a bit tight for Slackware if you also store files on it, so I went to a bigger SD card and will look at getting an SSD for file storage. 32GB card would be plenty, only went with 64GB because on sale it was only $3 (CAD) more than the 32.

TKS
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] RPi4 (Sarpi) - rc.local ntpdate "hack" fails to update date/time eduardr Slackware - ARM 8 03-31-2020 07:56 PM
RPi4 (Sarpi) - Installs OK from USB stick, but not from pre-mounted dir on /floppy eduardr Slackware - ARM 2 03-22-2020 02:59 AM
[SOLVED] SARPI (fatdog) on RPi4 - no HDMI video [SOLVED] arfon Slackware - ARM 4 03-17-2020 01:47 AM
[SOLVED] Arduino IDE on RPi4 SlackwareARM -current using modified Slackbuild TheTKS Slackware - ARM 3 02-15-2020 10:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 09:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration