iotjw
Posts: 3
Joined: Fri Nov 20, 2015 7:58 am

Issue in apt-get upgrade Jessie (libgdk-pixbuf2.0-common)

Fri Nov 20, 2015 8:22 am

After install jessie, I am trying to:
sudo apt-get update that went well, but
sudo apt-get upgrade hangs and finally stops with

pi@raspberrypi ~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
raspberrypi-ui-mods
The following packages will be upgraded:
bluej epiphany-browser epiphany-browser-data fonts-opensymbol gir1.2-gdkpixbuf-2.0 gstreamer1.0-omx krb5-locales libgdk-pixbuf2.0-common
libjavascriptcoregtk-3.0-0 libpixman-1-0 libpng12-0 libpng12-dev libreoffice libreoffice-avmedia-backend-gstreamer libreoffice-base libreoffice-base-core
libreoffice-base-drivers libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-gtk libreoffice-impress
libreoffice-java-common libreoffice-math libreoffice-report-builder-bin libreoffice-style-galaxy libreoffice-writer libvdpau1 libwebkitgtk-3.0-0
libwebkitgtk-3.0-common ntp nuscratch python3-pgzero python3-uno raspberrypi-net-mods rc-gui uno-libs3 unzip ure wpasupplicant
41 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0 B/105 MB of archives.
After this operation, 776 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Extracting templates from packages: 100%
(Reading database ... 117494 files and directories currently installed.)
Preparing to unpack .../libgdk-pixbuf2.0-common_2.31.1-2+deb8u3_all.deb ...
Unpacking libgdk-pixbuf2.0-common (2.31.1-2+deb8u3) over (2.31.1-2+deb8u2) ...

Closing my sessions with a
packet_write_wait: Connection to 192.168.1.109: Broken pipe

Any ideas??

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Issue in apt-get upgrade Jessie (libgdk-pixbuf2.0-common

Fri Nov 20, 2015 1:09 pm

Boot your system to a command line (NO GUI) and run it there. You're running out of RAM and the system is crawling because it's swapping to the SDCard.

You may also need to add

Code: Select all

gpu_mem=16
to config.txt to free up some more memory.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Navyscourge
Posts: 258
Joined: Sat Oct 24, 2015 1:50 pm

Re: Issue in apt-get upgrade Jessie (libgdk-pixbuf2.0-common

Fri Nov 20, 2015 3:11 pm

If you are running out of memory, you can check by opening the terminal window in the GUI, then type "top" at the prompt. Watch lines 4 and 5...

Code: Select all

KiB Mem:    980600 total,   852716 used,   127884 free,    43676 buffers
KiB Swap:   102396 total,        0 used,   102396 free.   528540 cached Mem
The Swap line should stay at 0 used, but if this number goes up the Pi is swapping "real" memory to SD card so it can use more memory. For small values this is less noticeable, but as that value approaches the "total" value more swapping will occur. Soon the CPU will be spending more time swapping and less time running the programs. Try closing some of what you are running to free memory.

The Swap memory is held in a file; this can be made bigger if you want (I am not too sure of the consequences of this). To change the size, type

Code: Select all

sudo nano /etc/dphys-swapfile
and change CONF_SWAPSIZE=100 to 120. Ctrl-O and Ctrl-X to save and exit the editor. Then type

Code: Select all

sudo /etc/init.d/dphys-swapfile stop
sudo /etc/init.d/dphys-swapfile start
Again type "top" at the prompt; the total on the Swap line will have changed. You might need a bit of trial and error to get a size that does not give too much swapping

iotjw
Posts: 3
Joined: Fri Nov 20, 2015 7:58 am

Re: Issue in apt-get upgrade Jessie (libgdk-pixbuf2.0-common

Sat Nov 21, 2015 10:05 am

hello everyone that answered my post, I thank you, but...
I have boot my rasp in command line, changed CONF_SWAPSIZE=100 to 120, and tried to run again
sudo apt-get update
sudo apt-get upgrade

and I got hanging again like this:
pi@raspberrypi ~ $ sudo dpkg --configure -a
pi@raspberrypi ~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
raspberrypi-ui-mods
The following packages will be upgraded:
bluej dhcpcd5 epiphany-browser epiphany-browser-data fonts-opensymbol gir1.2-gdkpixbuf-2.0 gir1.2-gtk-3.0 gstreamer1.0-omx
krb5-locales libfreetype6 libfreetype6-dev libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgtk-3-0 libgtk-3-bin libgtk-3-common
libjavascriptcoregtk-3.0-0 libk5crypto3 libpixman-1-0 libpng12-0 libpng12-dev libreoffice libreoffice-avmedia-backend-gstreamer
libreoffice-base libreoffice-base-core libreoffice-base-drivers libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw
libreoffice-gtk libreoffice-impress libreoffice-java-common libreoffice-math libreoffice-report-builder-bin libreoffice-style-galaxy
libreoffice-writer libsasl2-2 libsasl2-modules libsasl2-modules-db libvdpau1 libwebkitgtk-3.0-0 libwebkitgtk-3.0-common ntp nuscratch
python3-pgzero python3-uno raspberrypi-net-mods raspi-config rc-gui uno-libs3 unzip ure wpasupplicant
54 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/112 MB of archives.
After this operation, 2414 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Extracting templates from packages: 100%
(Reading database ... 117463 files and directories currently installed.)
Preparing to unpack .../libk5crypto3_1.12.1+dfsg-19+deb8u1_armhf.deb ...
Unpacking libk5crypto3:armhf (1.12.1+dfsg-19+deb8u1) over (1.12.1+dfsg-19) ...
Preparing to unpack .../libsasl2-modules-db_2.1.26.dfsg1-13+deb8u1_armhf.deb ...
Unpacking libsasl2-modules-db:armhf (2.1.26.dfsg1-13+deb8u1) over (2.1.26.dfsg1-13) ...
Preparing to unpack .../libsasl2-2_2.1.26.dfsg1-13+deb8u1_armhf.deb ...
Unpacking libsasl2-2:armhf (2.1.26.dfsg1-13+deb8u1) over (2.1.26.dfsg1-13) ...
Preparing to unpack .../libpng12-dev_1.2.50-2+deb8u1_armhf.deb ...
Unpacking libpng12-dev:armhf (1.2.50-2+deb8u1) over (1.2.50-2) ...
Preparing to unpack .../libpng12-0_1.2.50-2+deb8u1_armhf.deb ...
Unpacking libpng12-0:armhf (1.2.50-2+deb8u1) over (1.2.50-2) ...
Preparing to unpack .../libfreetype6-dev_2.6-2rpi1rpi1g_armhf.deb ...
Unpacking libfreetype6-dev (2.6-2rpi1rpi1g) over (2.5.2-4rpi1rpi1g) ...
packet_write_wait: Connection to 192.168.1.109: Broken pipe

At this moment my top reports freezes with:

top - 09:46:30 up 9 min,  2 users,  load average: 1.17, 0.65, 0.33
Tasks:  94 total,   1 running,  93 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.2 us,  1.7 sy,  0.0 ni, 73.1 id, 24.9 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:    948120 total,   510540 used,   437580 free,    63672 buffers
KiB Swap:   122876 total,        0 used,   122876 free.   370656 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                             
 1199 root      20   0   33300  30116  26184 S   6.9  3.2   0:04.79 apt-get                             
 1055 root      20   0    5092   2496   2140 R   2.0  0.3   0:02.18 top                                 
 1276 root      20   0   22096  19524   2232 D   1.0  2.1   0:01.20 dpkg                                
    1 root      20   0    5456   3952   2736 S   0.0  0.4   0:04.76 systemd                             
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kthreadd                            
    3 root      20   0       0      0      0 S   0.0  0.0   0:00.02 ksoftirqd/0  ...
and I have to unplug my rasp from the power supply to restart.

This is a fresh installation of Jessie.
I will appreciate any new ideas to solve this issue!

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Issue in apt-get upgrade Jessie (libgdk-pixbuf2.0-common

Sat Nov 21, 2015 10:13 am

1. Wire it to your router, wired is quicker than WiFi
2. Boot to a command line and you'll free up lots of your RAM
3. Boot to a command line and you'll free up lots of CPU that's running the GUI
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

iotjw
Posts: 3
Joined: Fri Nov 20, 2015 7:58 am

Re: Issue in apt-get upgrade Jessie (libgdk-pixbuf2.0-common

Sat Nov 21, 2015 1:12 pm

All suggested done.
wired, no GUI, still same issue:
sudo apt-get upgrade
...
when
Preparing to unpack .../libgdk-pixbuf2.0-common_2.31.1-2+deb8u3_all.deb ...
Unpacking libgdk-pixbuf2.0-common (2.31.1-2+deb8u3) over (2.31.1-2+deb8u2) ...
hangs and no way to pass this step.

Any ideas?

Return to “Troubleshooting”