Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: [SOLVED] dpkg: error: version 'uname -r' has bad syntax: version string has embedd

  1. #21
    Join Date
    Sep 2012
    Location
    North West England, UK
    Beans
    506
    Distro
    Ubuntu Gnome 17.04 Zesty Zapus

    Re: dpkg: error: version 'uname -r' has bad syntax: version string has embedded space

    yup...

    /var/lib/initramfs-tools$ ls -l
    total 12
    -rw-r--r-- 1 root root 76 Mar 23 18:34 3.2.0-38-generic
    -rw-r--r-- 1 root root 76 Mar 29 20:19 3.2.0-39-generic
    -rw-r--r-- 1 root root 68 Jan 13 12:28 uname -r
    but...

    sudo update-initramfs -d 'uname -r'
    Invalid argument for option -k.
    Usage: /usr/sbin/update-initramfs [OPTION]...


    Options:
    -k [version] Specify kernel version or 'all'
    -c Create a new initramfs
    -u Update an existing initramfs
    -d Remove an existing initramfs
    -t Take over a custom initramfs with this one
    -b Set alternate boot directory
    -v Be verbose
    -h This message

  2. #22
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: dpkg: error: version 'uname -r' has bad syntax: version string has embedded space

    Then just remove the checksum file
    Code:
    sudo rm -v /var/lib/initramfs-tools/uname*
    and re-run
    Code:
    sudo update-initramfs -u
    Last edited by schragge; March 29th, 2013 at 10:27 PM.

  3. #23
    Join Date
    Sep 2012
    Location
    North West England, UK
    Beans
    506
    Distro
    Ubuntu Gnome 17.04 Zesty Zapus

    Re: dpkg: error: version 'uname -r' has bad syntax: version string has embedded space

    Worked a treat, many thanks!

    Think I may have borked this when trying to remove old kernel versions.

    I appreciate the effort both, thanks.

    K

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •