adrian5750
Posts: 27
Joined: Mon Mar 06, 2017 10:10 pm

Pi3 problems after update

Sun Jul 15, 2018 5:32 pm

HI
I've been developing some software on my RPi3 for a while.
It runs a temperature-monitoring program, which I can watch on my main PC through VNC

Yesterday I did the sudo apt-get update thing, and now the screen background is black, the terminal window is stuck up at the top left-hand-corner of the screen and can't be dragged down, the mouse cursor has turned into a cross, and the monitor program also seems to have 'issues' - it used to draw a graph that filled the VNC window - now it's bigger than the VNC window..

Is there a way to 'downgrade' the install?
I really don't want to download a complete copy of NOOBS and start all over again - as it took an amount of fiddling with various libraries to get the setup working in the first place...

Thanks in advance for any suggestions....

Adrian

User avatar
HawaiianPi
Posts: 5072
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Pi3 problems after update

Sun Jul 15, 2018 5:40 pm

adrian5750 wrote:
Sun Jul 15, 2018 5:32 pm
I really don't want to download a complete copy of NOOBS and start all over again - as it took an amount of fiddling with various libraries to get the setup working in the first place...
And you never made backups? :?
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

DirkS
Posts: 10084
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Pi3 problems after update

Sun Jul 15, 2018 5:41 pm

Can you check the free disk space with

Code: Select all

df -h

adrian5750
Posts: 27
Joined: Mon Mar 06, 2017 10:10 pm

Re: Pi3 problems after update

Sun Jul 15, 2018 6:39 pm

DirkS wrote:
Sun Jul 15, 2018 5:41 pm
Can you check the free disk space with

Code: Select all

df -h
Yes -
Filesystem Size Used Avail Use% Mounted on
/dev/root 5.6G 5.2G 65M 99% /
devtmpfs 460M 0 460M 0% /dev
tmpfs 464M 0 464M 0% /dev/shm
tmpfs 464M 13M 452M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 464M 0 464M 0% /sys/fs/cgroup
/dev/mmcblk0p6 68M 22M 47M 33% /boot
tmpfs 93M 0 93M 0% /run/user/1000
/dev/mmcblk0p5 30M 398K 28M 2% /media/pi/SETTINGS11

I'm guessing that the /dev/root is a problem?
Thanks

DirkS
Posts: 10084
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Pi3 problems after update

Sun Jul 15, 2018 6:58 pm

adrian5750 wrote:
Sun Jul 15, 2018 6:39 pm
I'm guessing that the /dev/root is a problem?
Yes, 99% used. What you see is typical for low disk space.

5.6G is not a lot for full fat Raspbian GUI.
Can you uninstall / purge some large applications like wolfram?

adrian5750
Posts: 27
Joined: Mon Mar 06, 2017 10:10 pm

Re: Pi3 problems after update

Sun Jul 15, 2018 7:01 pm

DirkS wrote:
Sun Jul 15, 2018 6:58 pm
adrian5750 wrote:
Sun Jul 15, 2018 6:39 pm
I'm guessing that the /dev/root is a problem?
Yes, 99% used. What you see is typical for low disk space.

5.6G is not a lot for full fat Raspbian GUI.
Can you uninstall / purge some large applications like wolfram?
Probably - I don't use it...

Could you guide me as to what to type in terminal (before I make it any more broken than it is already!)

Would I then need to 'do something' to get back to a working system?

Thanks for your help
Adrian

DirkS
Posts: 10084
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Pi3 problems after update

Sun Jul 15, 2018 7:04 pm

adrian5750 wrote:
Sun Jul 15, 2018 7:01 pm
Could you guide me as to what to type in terminal (before I make it any more broken than it is already!)

Would I then need to 'do something' to get back to a working system?
Try

Code: Select all

sudo apt-get purge wolfram*
and confirm any actions. Then reboot and hopefully it's all working again.

adrian5750
Posts: 27
Joined: Mon Mar 06, 2017 10:10 pm

Re: Pi3 problems after update

Sun Jul 15, 2018 7:10 pm

OK - it's given me 710mb back.

df -h now shows this

Filesystem Size Used Avail Use% Mounted on
/dev/root 5.6G 4.5G 806M 85% /
devtmpfs 460M 0 460M 0% /dev
tmpfs 464M 0 464M 0% /dev/shm
tmpfs 464M 13M 452M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 464M 0 464M 0% /sys/fs/cgroup
/dev/mmcblk0p6 68M 22M 47M 33% /boot
tmpfs 93M 0 93M 0% /run/user/1000
/dev/mmcblk0p5 30M 398K 28M 2% /media/pi/SETTINGS11


Still got the weirdness with the windows stuck up at the top of the screen - and wider than the visible screen (both the 'real' screen and the VNC screen)

Do you think something about the screen size got overwritten in the update?

Thanks
Adrian
Last edited by adrian5750 on Sun Jul 15, 2018 8:26 pm, edited 1 time in total.

User avatar
HawaiianPi
Posts: 5072
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Pi3 problems after update

Sun Jul 15, 2018 8:22 pm

Sometimes new configuration files are installed, overwriting old ones. When that's done the old files are usually backed up to a folder called oldconffiles or something like that. It's possible that some configuration change you had previously made was lost when the update replaced the configuration file. Check the backed up files to see if any were ones you had modified.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

adrian5750
Posts: 27
Joined: Mon Mar 06, 2017 10:10 pm

Re: Pi3 problems after update

Sun Jul 15, 2018 9:16 pm

HawaiianPi wrote:
Sun Jul 15, 2018 8:22 pm
Sometimes new configuration files are installed, overwriting old ones. When that's done the old files are usually backed up to a folder called oldconffiles or something like that. It's possible that some configuration change you had previously made was lost when the update replaced the configuration file. Check the backed up files to see if any were ones you had modified.
Thanks
I have a folder .oldconffiles
in that folder I have
.config
and in there I have
/gtk-3.0/gtk.css
/lxsession/LXDE-pi/desktop.conf
/openbox/lxde-pi-rc.xml
/pcmanfm/LXDE-pi/lxde-pi-rc.xml

Does that help me at all?
Thanks
Adrian

LTolledo
Posts: 2396
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Pi3 problems after update

Sun Jul 15, 2018 9:24 pm

I'll assume you're running Stretch in an 8GB microSD, and have a spare microSD card with larger capacity (16GB and up)

if you can access the SD Card Copier program in Stretch, you might try cloning your current 8GB microSD Stretch to a 16GB microSD or larger, then boot from the cloned microSD.

if you cannot access SD Card Copier in Stretch, but have a windows PC, try making an image of your 8GB microSD card to your windows PC using Win32DiskImager. Then flash that image to a larger microSD card using Etcher, then boot from that cloned microSD.

if you are able to boot from the cloned microSD you might try running update and upgrade again to see if it fixes your current problem.
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

adrian5750
Posts: 27
Joined: Mon Mar 06, 2017 10:10 pm

Re: Pi3 problems after update

Sun Jul 15, 2018 9:33 pm

Thanks LTolledo
It's getting late here tonight - I'll take another look tomorrow and follow your instructions
Thanks again
Adrian

Return to “Troubleshooting”