Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  (solved) Package install caused "No space left on device" error  (Read 3165 times)

browe

  • Guest

This may be an isolated issue with papirus, but just posting to caution others.
If anyone has a suggestion or work-around that would be appreciated.


Code: [Select]
apt install papirus-icon-theme



After this operation, 9,013 kB of additional disk space will be used.
Do you want to continue? [Y/n] y


--- lots of errors like this:



dpkg: error while cleaning up:
 unable to restore backup version of '/usr/share/icons/Papirus/24x24/apps/gnome-settings-mouse.svg': No space left on device
Errors were encountered while processing:
 /var/cache/apt/archives/papirus-icon-theme_20190708-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


meanwhile I'm monitoring disk space usage before / during / after:


df -h /

Filesystem      Size  Used   Avail Use% Mounted on

/dev/sdb3        25G   16G  9.2G   64% /
/dev/sdb3        25G   16G     0   100% /

/dev/sdb3        25G   16G  9.3G   64% /












« Last Edit: 2019/07/26, 00:27:29 by browe »

Offline piper

  • User
  • Posts: 1.785
  • we are the priests ... of the temples of syrinx
Re: Package install caused "No space left on device" error
« Reply #1 on: 2019/07/24, 00:09:59 »
Code: [Select]
/dev/sdb3        25G   16G     0   100% /


Is the problem

Work around is you need more space ;)


Code: [Select]
root@x1:/home/piper# apt install papirus-icon-theme
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  libreoffice-style-papirus
The following NEW packages will be installed:
  papirus-icon-theme
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.8 MB of archives.
After this operation, 123 MB of additional disk space will be used.
Get:1 http://10.10.10.3:3142/mirror.math.princeton.edu/pub/debian unstable/main amd64 papirus-icon-theme all 20190708-2 [11.8 MB]
Fetched 11.8 MB in 4s (2,690 kB/s)
Selecting previously unselected package papirus-icon-theme.
(Reading database ... 263856 files and directories currently installed.)
Preparing to unpack .../papirus-icon-theme_20190708-2_all.deb ...
Unpacking papirus-icon-theme (20190708-2) ...
Setting up papirus-icon-theme (20190708-2) ...
root@x1:/home/piper#
Free speech isn't just fucking saying what you want to say, it's also hearing what you don't want to fucking hear

I either give too many fucks or no fucks at all, it's like I cannot find a middle ground for a moderate fuck distribution, it's like what the fuck

Offline piper

  • User
  • Posts: 1.785
  • we are the priests ... of the temples of syrinx
Re: Package install caused "No space left on device" error
« Reply #2 on: 2019/07/24, 00:16:35 »
Hmm, for shits & giggles does

Code: [Select]
apt --reinstall install papirus-icon-theme
give the same error

It should

Just reading that a few with the same error using gnome & ppa's
Free speech isn't just fucking saying what you want to say, it's also hearing what you don't want to fucking hear

I either give too many fucks or no fucks at all, it's like I cannot find a middle ground for a moderate fuck distribution, it's like what the fuck

Offline melmarker

  • User
  • Posts: 2.799
    • g-com.eu
Re: Package install caused "No space left on device" error
« Reply #3 on: 2019/07/24, 01:20:14 »
`apt clean` for the rescue
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)

browe

  • Guest
Re: Package install caused "No space left on device" error
« Reply #4 on: 2019/07/24, 02:03:30 »
Thanks for the input. I have tried all the typical apt tools I can think of short of forcing anything: apt clean, apt autoclean, apt install -f, apt --reinstall, apt remove --purge. I typically use apt clean and autoclean after every upgrade.

Code: [Select]

root@hal:/home/browe# apt remove --purge papirus-icon-theme
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  papirus-icon-theme*
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
423 not fully installed or removed.
After this operation, 114 MB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: error processing package papirus-icon-theme (--remove):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting a removal
Errors were encountered while processing:
 papirus-icon-theme
E: Sub-process /usr/bin/dpkg returned an error code (1)


I included the deb file install text to avoid piper's answer: 9.2G free for 9,013 kb of additional space required. I have a hard time understanding why apt would create a temporary file >9.2G to install this package.


The odd thing is during the install process space went from 9.2G free, to 0 free, then back to 9.3G free once apt gave up.


« Last Edit: 2019/07/24, 02:07:06 by browe »

Offline axt

  • User
  • Posts: 494
    • axebase.net
Re: Package install caused "No space left on device" error
« Reply #5 on: 2019/07/24, 08:55:45 »
Now look carefully! It's not at all about the one small innocent package. Wanting to install the package over and over again doesn't help at all.

There are 16 GiB of 25 GiB used, so there would be 9 GiB free, but the filesystem is declared as 100% full.

So the reason lies in a problem with the filesystem. You have to find that (e.g. a part is automatically reserved (5%), maybe you have configured something wrong there).

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
Re: Package install caused "No space left on device" error
« Reply #6 on: 2019/07/24, 12:34:52 »
Look at /dev/sdb3 with ncdu. Should be installed already if your install is not too old.

browe

  • Guest
Re: Package install caused "No space left on device" error
« Reply #7 on: 2019/07/25, 04:14:12 »
Thanks devil,

Problem seems to have resolved itself... likely papirus team updated the deb. I did apt install -f and for safe measure did a package --reinstall... all functioning OK now, and 8.5G free on /

Some info:


Code: [Select]
ncdu -x /
10.3 GiB /usr
3.7   GiB /var
601.3 MiB /lib
447.6 MiB /opt
29.6 MiB /root
29.4 MiB /etc
...
Total disk usage:  15.1 GiB  Apparent size:  15.0 GiB  Items: 383164


more disk and file system info:



Drives:    Local Storage: total: 1.02 TiB used: 513.72 GiB (49.2%)
           ID-1: /dev/sda vendor: Western Digital model: WD10EADS-00L5B1 size: 931.51 GiB temp: 34 C
           ID-2: /dev/sdb vendor: SanDisk model: SDSSDXP120G size: 111.79 GiB temp: 32 C
           Optical-1: /dev/sr0 vendor: ATAPI model: iHAS324 A rev: BL14 dev-links: cdrom,cdrw,dvd,dvdrw
Partition: ID-1: / size: 25.00 GiB used: 16.47 GiB (65.9%) fs: btrfs dev: /dev/sdb3 label: root
           uuid: 58d92a69-02d8-4313-bd29-f47e91709906
           ID-2: /boot size: 199.8 MiB used: 86.6 MiB (43.3%) fs: vfat dev: /dev/sdb1 label: BOOT
           uuid: 32C2-22C1
           ID-3: /home size: 84.59 GiB used: 34.29 GiB (40.5%) fs: btrfs dev: /dev/sdb4 label: home
           uuid: 77499cc4-4b14-43b8-bc69-af609a1b76e8
           ID-4: swap-1 size: 2.00 GiB used: 325.2 MiB (15.9%) fs: swap dev: /dev/sdb2 label: N/A


axd: I'm not ruling out that there could be something wrong with the filesystem, but other debs that were part of the upgrade prior to papirus worked fine. Trying an upgrade earlier today gave me the following, note that there was no attempt to restore 100+ backup files today:


Code: [Select]

root@hal:/# apt install papirus-icon-theme
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  libreoffice-style-papirus
The following packages will be upgraded:
  papirus-icon-theme
1 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
423 not fully installed or removed.
Need to get 0 B/11.8 MB of archives.
After this operation, 9,013 kB of additional disk space will be used.
(Reading database ... 331707 files and directories currently installed.)
Preparing to unpack .../papirus-icon-theme_20190708-2_all.deb ...
Unpacking papirus-icon-theme (20190708-2) over (20190203-1) ...
dpkg: error processing archive /var/cache/apt/archives/papirus-icon-theme_20190708-2_all.deb (--unpack):
 unable to create '/usr/share/icons/ePapirus/24x24/panel/mstdn-panel.svg.dpkg-new' (while processing './usr/share/icons/ePapirus/24x24/panel/mstdn-panel.svg'): No space left on device
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/papirus-icon-theme_20190708-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)







« Last Edit: 2019/07/25, 04:26:31 by browe »