Problems while upgrading from 16.04 to 18.04












0















I have tried to upgrade from 16.04 to 18.04. But i'm facing some problems.



nuc ➜  ~  sudo apt update                              
Hit:1 http://se.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Hit:3 http://se.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://se.archive.ubuntu.com/ubuntu bionic-backports InRelease
Fetched 88,7 kB in 0s (164 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1919 packages can be upgraded. Run 'apt list --upgradable' to see them.
nuc ➜ ~ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
python3-aptdaemon.pkcompat : Conflicts: packagekit
Conflicts: packagekit:i386
E: Broken packages


I have tried to remove the conflicting packages:



nuc ➜  ~  sudo apt remove packagekit packagekit:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'packagekit' is not installed, so not removed
Package 'packagekit:i386' is not installed, so not removed
The following packages were automatically installed and are no longer required:
amd64-microcode thermald
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1919 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-unsigned-4.15.0-45-generic (4.15.0-45.48) ...
Processing triggers for linux-image-unsigned-4.15.0-45-generic (4.15.0-45.48) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.15.0-45-generic
cp: failed to restore the default file creation context: Invalid argument
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915
cp: failed to restore the default file creation context: Invalid argument
E: /usr/share/initramfs-tools/hooks/kmod failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.15.0-45-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-unsigned-4.15.0-45-generic (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
linux-image-unsigned-4.15.0-45-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)


Any advice would be helpfull!










share|improve this question







New contributor




macbug is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I have tried to upgrade from 16.04 to 18.04. But i'm facing some problems.



    nuc ➜  ~  sudo apt update                              
    Hit:1 http://se.archive.ubuntu.com/ubuntu bionic InRelease
    Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
    Hit:3 http://se.archive.ubuntu.com/ubuntu bionic-updates InRelease
    Hit:4 http://se.archive.ubuntu.com/ubuntu bionic-backports InRelease
    Fetched 88,7 kB in 0s (164 kB/s)
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    1919 packages can be upgraded. Run 'apt list --upgradable' to see them.
    nuc ➜ ~ sudo apt upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    python3-aptdaemon.pkcompat : Conflicts: packagekit
    Conflicts: packagekit:i386
    E: Broken packages


    I have tried to remove the conflicting packages:



    nuc ➜  ~  sudo apt remove packagekit packagekit:i386
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package 'packagekit' is not installed, so not removed
    Package 'packagekit:i386' is not installed, so not removed
    The following packages were automatically installed and are no longer required:
    amd64-microcode thermald
    Use 'sudo apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 1919 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up linux-image-unsigned-4.15.0-45-generic (4.15.0-45.48) ...
    Processing triggers for linux-image-unsigned-4.15.0-45-generic (4.15.0-45.48) ...
    /etc/kernel/postinst.d/initramfs-tools:
    update-initramfs: Generating /boot/initrd.img-4.15.0-45-generic
    cp: failed to restore the default file creation context: Invalid argument
    W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915
    W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915
    cp: failed to restore the default file creation context: Invalid argument
    E: /usr/share/initramfs-tools/hooks/kmod failed with return 1.
    update-initramfs: failed for /boot/initrd.img-4.15.0-45-generic with 1.
    run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
    dpkg: error processing package linux-image-unsigned-4.15.0-45-generic (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    linux-image-unsigned-4.15.0-45-generic
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    Any advice would be helpfull!










    share|improve this question







    New contributor




    macbug is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I have tried to upgrade from 16.04 to 18.04. But i'm facing some problems.



      nuc ➜  ~  sudo apt update                              
      Hit:1 http://se.archive.ubuntu.com/ubuntu bionic InRelease
      Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
      Hit:3 http://se.archive.ubuntu.com/ubuntu bionic-updates InRelease
      Hit:4 http://se.archive.ubuntu.com/ubuntu bionic-backports InRelease
      Fetched 88,7 kB in 0s (164 kB/s)
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      1919 packages can be upgraded. Run 'apt list --upgradable' to see them.
      nuc ➜ ~ sudo apt upgrade
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Calculating upgrade... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      python3-aptdaemon.pkcompat : Conflicts: packagekit
      Conflicts: packagekit:i386
      E: Broken packages


      I have tried to remove the conflicting packages:



      nuc ➜  ~  sudo apt remove packagekit packagekit:i386
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Package 'packagekit' is not installed, so not removed
      Package 'packagekit:i386' is not installed, so not removed
      The following packages were automatically installed and are no longer required:
      amd64-microcode thermald
      Use 'sudo apt autoremove' to remove them.
      0 upgraded, 0 newly installed, 0 to remove and 1919 not upgraded.
      1 not fully installed or removed.
      After this operation, 0 B of additional disk space will be used.
      Setting up linux-image-unsigned-4.15.0-45-generic (4.15.0-45.48) ...
      Processing triggers for linux-image-unsigned-4.15.0-45-generic (4.15.0-45.48) ...
      /etc/kernel/postinst.d/initramfs-tools:
      update-initramfs: Generating /boot/initrd.img-4.15.0-45-generic
      cp: failed to restore the default file creation context: Invalid argument
      W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915
      W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915
      cp: failed to restore the default file creation context: Invalid argument
      E: /usr/share/initramfs-tools/hooks/kmod failed with return 1.
      update-initramfs: failed for /boot/initrd.img-4.15.0-45-generic with 1.
      run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
      dpkg: error processing package linux-image-unsigned-4.15.0-45-generic (--configure):
      subprocess installed post-installation script returned error exit status 1
      Errors were encountered while processing:
      linux-image-unsigned-4.15.0-45-generic
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      Any advice would be helpfull!










      share|improve this question







      New contributor




      macbug is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I have tried to upgrade from 16.04 to 18.04. But i'm facing some problems.



      nuc ➜  ~  sudo apt update                              
      Hit:1 http://se.archive.ubuntu.com/ubuntu bionic InRelease
      Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
      Hit:3 http://se.archive.ubuntu.com/ubuntu bionic-updates InRelease
      Hit:4 http://se.archive.ubuntu.com/ubuntu bionic-backports InRelease
      Fetched 88,7 kB in 0s (164 kB/s)
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      1919 packages can be upgraded. Run 'apt list --upgradable' to see them.
      nuc ➜ ~ sudo apt upgrade
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Calculating upgrade... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:

      The following packages have unmet dependencies:
      python3-aptdaemon.pkcompat : Conflicts: packagekit
      Conflicts: packagekit:i386
      E: Broken packages


      I have tried to remove the conflicting packages:



      nuc ➜  ~  sudo apt remove packagekit packagekit:i386
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Package 'packagekit' is not installed, so not removed
      Package 'packagekit:i386' is not installed, so not removed
      The following packages were automatically installed and are no longer required:
      amd64-microcode thermald
      Use 'sudo apt autoremove' to remove them.
      0 upgraded, 0 newly installed, 0 to remove and 1919 not upgraded.
      1 not fully installed or removed.
      After this operation, 0 B of additional disk space will be used.
      Setting up linux-image-unsigned-4.15.0-45-generic (4.15.0-45.48) ...
      Processing triggers for linux-image-unsigned-4.15.0-45-generic (4.15.0-45.48) ...
      /etc/kernel/postinst.d/initramfs-tools:
      update-initramfs: Generating /boot/initrd.img-4.15.0-45-generic
      cp: failed to restore the default file creation context: Invalid argument
      W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915
      W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915
      cp: failed to restore the default file creation context: Invalid argument
      E: /usr/share/initramfs-tools/hooks/kmod failed with return 1.
      update-initramfs: failed for /boot/initrd.img-4.15.0-45-generic with 1.
      run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
      dpkg: error processing package linux-image-unsigned-4.15.0-45-generic (--configure):
      subprocess installed post-installation script returned error exit status 1
      Errors were encountered while processing:
      linux-image-unsigned-4.15.0-45-generic
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      Any advice would be helpfull!







      16.04 18.04 upgrade






      share|improve this question







      New contributor




      macbug is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      macbug is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      macbug is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 8 hours ago









      macbugmacbug

      1




      1




      New contributor




      macbug is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      macbug is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      macbug is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Make sure that your important files and file system are backed up before doing a distro update. I recommend using rsync for any type of file system backups. Have you tried



          sudo apt clean



          sudo apt-get update



          sudo apt-get upgrade



          sudo apt-get dist-upgrade






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });






            macbug is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1119641%2fproblems-while-upgrading-from-16-04-to-18-04%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Make sure that your important files and file system are backed up before doing a distro update. I recommend using rsync for any type of file system backups. Have you tried



            sudo apt clean



            sudo apt-get update



            sudo apt-get upgrade



            sudo apt-get dist-upgrade






            share|improve this answer




























              0














              Make sure that your important files and file system are backed up before doing a distro update. I recommend using rsync for any type of file system backups. Have you tried



              sudo apt clean



              sudo apt-get update



              sudo apt-get upgrade



              sudo apt-get dist-upgrade






              share|improve this answer


























                0












                0








                0







                Make sure that your important files and file system are backed up before doing a distro update. I recommend using rsync for any type of file system backups. Have you tried



                sudo apt clean



                sudo apt-get update



                sudo apt-get upgrade



                sudo apt-get dist-upgrade






                share|improve this answer













                Make sure that your important files and file system are backed up before doing a distro update. I recommend using rsync for any type of file system backups. Have you tried



                sudo apt clean



                sudo apt-get update



                sudo apt-get upgrade



                sudo apt-get dist-upgrade







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 6 hours ago









                spinState010spinState010

                11




                11






















                    macbug is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    macbug is a new contributor. Be nice, and check out our Code of Conduct.













                    macbug is a new contributor. Be nice, and check out our Code of Conduct.












                    macbug is a new contributor. Be nice, and check out our Code of Conduct.
















                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1119641%2fproblems-while-upgrading-from-16-04-to-18-04%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How did Captain America manage to do this?

                    迪纳利

                    南乌拉尔铁路局