Summer amd64 upgrade fails missing "/var/tmp"

Forum rules
We don't support installations in VirtualBox, VMWare, qemu or others. We ignore posts about WINE, PlayOnLinux, Steam and Skype. We don't support btrfs, lvm, UEFI, side-by-side installations with GPT or dualboot with anything newer than Windows XP.
Google your problem first. Check the Wiki. Read the existing threads. It's okay to "hijack" an existing thread, yes! If your problem is not yet covered, open a new thread. To get the quickest possible help, mention the exact release codename in your post (uname -a is a good idea, too). Due to the lack of crystal balls, attach the output of lspci -nnk if you encounter hardware problems.
User avatar
Sector11
Sperminator
Posts: 193
Joined: Mon Aug 19, 2013 4:15 am

Summer amd64 upgrade fails missing "/var/tmp"

Unread post by Sector11 » Sat Jun 28, 2014 5:17 pm

machinebacon wrote:Updated/fixed the i486 ISO on June 28, please check the 2014 folder at sourceforge.
OK, I guess that means I shouldn't have to ask ... but in case it happened to someone else:

After installing linuxbbq-summer2014-amd64-20140621 and getting ceni up an running I ran

Code: Select all

apt-get update
twice because of not getting some repos ... second time was a charm but

Code: Select all

apt-get dist-upgrade
ended with this error:

Code: Select all

mktemp: failed to create directory via template ‘/var/tmp/mkinitramfs_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-3.14-1-amd64 with 1.
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@sector11:~#

Code: Select all

apt-get install --reinstall initramfs-tools --no-install-recommends
closed with the same error.
What happened and is there a way to fix it? (for future considerations)

Will grab the latest and see how that goes.

(moderator note -- split from the release notes topic. Please do not ask support questions in the release topics)
I am THE resident noob, hands down no discussion. ... and
I wear my soap on a rope.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: MAIN EDITION: Summer 2014 (amd64/i486)

Unread post by machinebacon » Sat Jun 28, 2014 5:24 pm

It says it cannot create /var/tmp/...

sudo mkdir /var/tmp
and then run the apt-get routine again

(see top post ;))
..gnutella..

User avatar
Sector11
Sperminator
Posts: 193
Joined: Mon Aug 19, 2013 4:15 am

Re: MAIN EDITION: Summer 2014 (amd64/i486)

Unread post by Sector11 » Sat Jun 28, 2014 6:03 pm

machinebacon wrote:It says it cannot create /var/tmp/...

sudo mkdir /var/tmp
and then run the apt-get routine again

(see top post ;))
NOOOOOOOOOOO!!!!! Was that always there?

Commonly called: How to feel like a stooge in 1 easy lesson - DUH!

WDRDSTFM: When in Doubt, Read, Don't Skim, the Full Manual.
I am THE resident noob, hands down no discussion. ... and
I wear my soap on a rope.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by machinebacon » Sat Jun 28, 2014 7:49 pm

It was there before you posted the apt-get problem, yes :)

Wall of text, actually you should feel comfy with that :D
..gnutella..

User avatar
vic
Godot
Posts: 2117
Joined: Wed Oct 17, 2012 10:11 am
Location: /bin

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by vic » Tue Jul 01, 2014 11:52 pm

^Did that, got;

Code: Select all

2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up initramfs-tools (0.115) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-3.14-1-amd64 (3.14.9-1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-3.14-1-amd64
mktemp: failed to create directory via template ‘/var/tmp/mkinitramfs_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-3.14-1-amd64 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.14-1-amd64.postinst line 586.
dpkg: error processing package linux-image-3.14-1-amd64 (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for initramfs-tools (0.115) ...
update-initramfs: Generating /boot/initrd.img-3.14-1-amd64
mktemp: failed to create directory via template ‘/var/tmp/mkinitramfs_XXXXXX’: No such file or directory
update-initramfs: failed for /boot/initrd.img-3.14-1-amd64 with 1.
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-3.14-1-amd64
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
Googled around, checked the directories mentioned in the output, realised that I should ask someone with more understanding than me. Have tried with -f install, --configure, to no avail. What to do further? :)

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by pidsley » Wed Jul 02, 2014 1:47 am

Please show us the output of

Code: Select all

ls /var

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by machinebacon » Wed Jul 02, 2014 2:10 am

vic, did you sudo mkdir /var/tmp ?
afterwards, sudo apt-get install --reinstall initramfs-tools
..gnutella..

User avatar
vic
Godot
Posts: 2117
Joined: Wed Oct 17, 2012 10:11 am
Location: /bin

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by vic » Wed Jul 02, 2014 7:37 am

@pidsley;,

Code: Select all

vic@legrill:~$ ls /var
backups/  cache/  lib/  local/  log/  mail/  opt/  spool/  temp/  lock@  run@
@machinebacon, yes I am sure I did mkdir /var/temp then I tried;

Code: Select all

vic@legrill:~$ sudo apt-get install --reinstall initramfs-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for initramfs-tools:amd64

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by wuxmedia » Wed Jul 02, 2014 7:46 am

google suggests this:

Code: Select all

sudo dpkg -i /var/cache/apt/archives/*.deb
sudo dpkg --configure -a
"Seek, and Ye shall find"
"Github | Chooons | Site"

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by machinebacon » Wed Jul 02, 2014 8:44 am

If it still gets stuck there, remove the initramfs debs:

sudo rm -f /var/lib/dpkg/info/initramfs-tools.post*
sudo rm -f /var/lib/dpkg/info/initramfs-tools.pre*
sudo dpkg --configure -a

this will skip the initramfs-tools error and at least finish the upgrade, afterwards:

sudo apt-get update
sudo apt-get install -f
..gnutella..

User avatar
tenkainen
applies for custom title
Posts: 49
Joined: Wed Feb 19, 2014 12:03 pm
Location: Finland

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by tenkainen » Wed Jul 02, 2014 9:37 am

vic wrote:@pidsley;,

Code: Select all

vic@legrill:~$ ls /var
backups/  cache/  lib/  local/  log/  mail/  opt/  spool/  temp/  lock@  run@
@machinebacon, yes I am sure I did mkdir /var/temp then I tried;

...
You do realize that you made a directory called 'temp' while the output suggests you make one with the name of 'tmp'..?
Random terrible things.

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by wuxmedia » Wed Jul 02, 2014 10:01 am

^ classic, good eyes Tennky
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
vic
Godot
Posts: 2117
Joined: Wed Oct 17, 2012 10:11 am
Location: /bin

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by vic » Wed Jul 02, 2014 10:04 am

^^Oh crap, *blushing red cheeks* thanks tenkainen. Will continue with this a little bit later today, meatlife is screaming for attention :)Thanks guys!

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by rhowaldt » Wed Jul 02, 2014 11:14 am

hihihi
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

User avatar
vic
Godot
Posts: 2117
Joined: Wed Oct 17, 2012 10:11 am
Location: /bin

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by vic » Wed Jul 02, 2014 12:41 pm

Here I am sitting in the corner of shame, smoking my old worn out bras. Mumbling to myself, payattention, payattention, payattention to /tmp for the love of the BBQ. Crazy feeling though, the feeling of being so sure of something, and then...so til next moment of shame...cheers and thanks for input:)

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by rhowaldt » Wed Jul 02, 2014 1:12 pm

^ years of therapy plus some nice ice cream will get you over it swiftly ;)
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

User avatar
tenkainen
applies for custom title
Posts: 49
Joined: Wed Feb 19, 2014 12:03 pm
Location: Finland

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by tenkainen » Wed Jul 02, 2014 2:23 pm

That's what I always do: debug one typo for hours. :-D
I guess practice has sharpened my eye.
Random terrible things.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by machinebacon » Wed Jul 02, 2014 2:42 pm

vic, just for the sake of curiosity: is this the *newest* ISO? I am sure that I even added a hook to create /var/tmp :-/
..gnutella..

User avatar
vic
Godot
Posts: 2117
Joined: Wed Oct 17, 2012 10:11 am
Location: /bin

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by vic » Wed Jul 02, 2014 11:25 pm

It is the "Romantic Rapist" release. Same thing on two different installs. Both fixed now. So all is hunky dory now til...:D

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: Summer amd64 upgrade fails missing "/var/tmp"

Unread post by machinebacon » Thu Jul 03, 2014 12:13 am

^ Ah okay, thank you for the info, my romantic rapist ;)
..gnutella..

Post Reply