Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: cannot upgrade from Ubuntu 18.04 to 20.04.1

  1. #1
    Join Date
    Jan 2019
    Beans
    16

    cannot upgrade from Ubuntu 18.04 to 20.04.1

    Tried to upgrade from ubuntu 18.04 to 20.04. 1 via command line and update manager
    Getting the same problem. following are some of my command line input and their responses.

    i updated all installed packages using both the update manager and also the following command line commands

    sudo apt update
    sudo apt list --upgradable
    sudo apt upgrade


    I removed all unused old kernels using the following command

    sudo apt --purge autoremove


    I tried reinstalling Update manager core packages using the following command

    sudo apt install update-manager-core


    Then i tried upgrading to ubuntu 20.04 using the following command

    sudo do-release-upgrade

    Following are the terminal output after some of the commands

    Code:
    lennoxg@lennoxg-X510UAR:~$ sudo apt --purge autoremove
    
    
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.20) ...
    Samba is not being run as an AD Domain Controller.
    Please ignore the following error about deb-systemd-helper not finding samba-ad-dc.service.
    Job for smbd.service failed because the control process exited with error code.
    See "systemctl status smbd.service" and "journalctl -xe" for details.
    invoke-rc.d: initscript smbd, action "restart" failed.
    ● smbd.service - Samba SMB Daemon
       Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Tue 2020-10-20 15:01:09 AST; 6ms ago
         Docs: man:smbd(8)
               man:samba(7)
               man:smb.conf(5)
      Process: 32591 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
     Main PID: 32591 (code=exited, status=1/FAILURE)
    
    
    Oct 20 15:01:09 lennoxg-X510UAR systemd[1]: Starting Samba SMB Daemon...
    Oct 20 15:01:09 lennoxg-X510UAR systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
    Oct 20 15:01:09 lennoxg-X510UAR systemd[1]: smbd.service: Failed with result 'exit-code'.
    Oct 20 15:01:09 lennoxg-X510UAR systemd[1]: Failed to start Samba SMB Daemon.
    dpkg: error processing package samba (--configure):
     installed samba package post-installation script subprocess returned error exit status 1
    Processing triggers for libc-bin (2.27-3ubuntu1.2) ...
    Errors were encountered while processing:
     samba
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Code:
    lennoxg@lennoxg-X510UAR:~$ sudo apt install update-manager-core
    
    
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    update-manager-core is already the newest version (1:18.04.11.13).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 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 samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.20) ...
    Samba is not being run as an AD Domain Controller.
    Please ignore the following error about deb-systemd-helper not finding samba-ad-dc.service.
    Job for smbd.service failed because the control process exited with error code.
    See "systemctl status smbd.service" and "journalctl -xe" for details.
    invoke-rc.d: initscript smbd, action "restart" failed.
    ● smbd.service - Samba SMB Daemon
       Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Tue 2020-10-20 15:02:01 AST; 5ms ago
         Docs: man:smbd(8)
               man:samba(7)
               man:smb.conf(5)
      Process: 32759 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
     Main PID: 32759 (code=exited, status=1/FAILURE)
    dpkg: error processing package samba (--configure):
     installed samba package post-installation script subprocess returned error exit status 1
    Processing triggers for libc-bin (2.27-3ubuntu1.2) ...
    Errors were encountered while processing:
     samba
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Code:
    lennoxg@lennoxg-X510UAR:~$ sudo do-release-upgrade
    
    
    Checking for a new Ubuntu release
    Get:1 Upgrade tool signature [1,554 B]                                         
    Get:2 Upgrade tool [1,336 kB]                                                  
    Fetched 1,338 kB in 0s (0 B/s)                                                 
    authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg' 
    extracting 'focal.tar.gz'
    
    
    Reading cache
    
    
    Checking package manager
    Reading package lists... Done
    Building dependency tree        
    Reading state information... Done
    Hit http://es-mirrors.evowise.com/ubuntu bionic InRelease                      
    Hit http://es-mirrors.evowise.com/ubuntu bionic-updates InRelease              
    Hit http://es-mirrors.evowise.com/ubuntu bionic-backports InRelease            
    Hit http://es-mirrors.evowise.com/ubuntu bionic-security InRelease             
    Hit http://archive.canonical.com/ubuntu bionic InRelease                       
    Hit http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu bionic InRelease       
    Hit http://ppa.launchpad.net/gezakovacs/ppa/ubuntu bionic InRelease            
    Hit http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu bionic InRelease      
    Hit http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease                
    Hit http://ppa.launchpad.net/teejee2008/ppa/ubuntu bionic InRelease            
    Hit http://ppa.launchpad.net/tista/adapta/ubuntu bionic InRelease              
    Hit http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease          
    Fetched 0 B in 0s (0 B/s)                                                      
    Reading package lists... Done    
    Building dependency tree          
    Reading state information... Done
    
    
    Restoring original system state
    
    
    Aborting
    Reading package lists... Done    
    Building dependency tree          
    Reading state information... Done
    
    
    lennoxg@lennoxg-X510UAR:~$ 
    I am new to linux
    I am running a dual boot consisting of windows 10 and ubuntu 18.04 on Asus Vivobook
    64Bit OS

    Thanks for all the help
    Last edited by Frogs Hair; 4 Weeks Ago at 02:48 PM. Reason: Code Tags

  2. #2
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: cannot upgrade from Ubuntu 18.04 to 20.04.1

    You started off correctly by updating/upgrading 18.04. What you need to do now is open Software & Updates>Other Software tab and uncheck those Bionic PPAs. They are pointing to repositories that do not exist in 20.04 (Focal).

    The do-release-upgrade command is for server systems and you need to add what is called a switch. It is -d if we are upgrading from 18.04.

    or you can follow the instructions in the 20.04 release notes.

    https://wiki.ubuntu.com/FocalFossa/ReleaseNotes


    To upgrade on a desktop system:


    • Open the "Software & Updates" Setting in System Settings.

    • Select the 3rd Tab called "Updates".
    • Set the "Notify me of a new Ubuntu version" drop down menu to "For any new version" if you are using 19.10; set it to "For long-term support versions" if you are using 18.04 LTS.
    • Press Alt+F2 and type update-manager -c into the command box if you are using 19.10;
      type update-manager -c -d if you are using 18.04 LTS.

    • Update Manager should open up and tell you that Ubuntu 20.04 LTS is now available.
    • Click Upgrade and follow the on-screen instructions.
    Regards
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  3. #3
    Join Date
    Jan 2019
    Beans
    16

    Re: cannot upgrade from Ubuntu 18.04 to 20.04.1

    Thanks Graham for your response. I will do what you say and get bak to you later today

  4. #4
    Join Date
    Jan 2019
    Beans
    16

    Re: cannot upgrade from Ubuntu 18.04 to 20.04.1

    Hi Graham i did what u said but the problem is remains. I did a screen record of what i did with simple screen recorder, but i realize that i cant attach it to this reply as the forum does not support .mkv files. i would have to copy the print out again and send it to you. will do so later tonight

    thanks again

  5. #5
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    11,593
    Distro
    Ubuntu

    Re: cannot upgrade from Ubuntu 18.04 to 20.04.1

    Unless something happened recently nothing changed to fix the broken package issue your having with samba.
    Run
    Code:
    sudo apt update
    sudo apt install -f
    post the results.

    Also a similar issue posted here: https://askubuntu.com/questions/1090...sult-exit-code

    But basically you need to fix that first before any upgrade are possible.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  6. #6
    Join Date
    Jan 2019
    Beans
    16

    Re: cannot upgrade from Ubuntu 18.04 to 20.04.1

    Thanks DeadFlowr
    Here are the outputs from the two commands

    Code:
    lennoxg@lennoxg-X510UAR:~$ sudo apt update
    [sudo] password for lennoxg: 
    Hit:1 http://es-mirrors.evowise.com/ubuntu bionic InRelease                    
    Hit:2 http://es-mirrors.evowise.com/ubuntu bionic-updates InRelease            
    Hit:3 http://es-mirrors.evowise.com/ubuntu bionic-backports InRelease
    Hit:4 http://es-mirrors.evowise.com/ubuntu bionic-security InRelease
    Hit:5 http://archive.canonical.com/ubuntu bionic InRelease
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    All packages are up to date.

    Code:
    lennoxg@lennoxg-X510UAR:~$ sudo apt install -f
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.20) ...
    Samba is not being run as an AD Domain Controller.
    Please ignore the following error about deb-systemd-helper not finding samba-ad-dc.service.
    Job for smbd.service failed because the control process exited with error code.
    See "systemctl status smbd.service" and "journalctl -xe" for details.
    invoke-rc.d: initscript smbd, action "restart" failed.
    ● smbd.service - Samba SMB Daemon
       Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Wed 2020-10-21 20:07:06 AST; 25ms ago
         Docs: man:smbd(8)
               man:samba(7)
               man:smb.conf(5)
      Process: 896 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
     Main PID: 896 (code=exited, status=1/FAILURE)
    
    
    Oct 21 20:07:03 lennoxg-X510UAR systemd[1]: Starting Samba SMB Daemon...
    Oct 21 20:07:06 lennoxg-X510UAR systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
    Oct 21 20:07:06 lennoxg-X510UAR systemd[1]: smbd.service: Failed with result 'exit-code'.
    Oct 21 20:07:06 lennoxg-X510UAR systemd[1]: Failed to start Samba SMB Daemon.
    dpkg: error processing package samba (--configure):
     installed samba package post-installation script subprocess returned error exit status 1
    Processing triggers for libc-bin (2.27-3ubuntu1.2) ...
    Errors were encountered while processing:
     samba
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    lennoxg@lennoxg-X510UAR:~$
    Last edited by deadflowr; 4 Weeks Ago at 04:06 AM. Reason: code tags

  7. #7
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    11,593
    Distro
    Ubuntu

    Re: cannot upgrade from Ubuntu 18.04 to 20.04.1

    What I can gather is samba might have a configuration issue.
    run
    Code:
    testparm
    to see what's gong on with it.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  8. #8
    Join Date
    Jan 2019
    Beans
    16

    Re: cannot upgrade from Ubuntu 18.04 to 20.04.1

    Deadflowr
    I ran testparm
    here are the results

    lennoxg@lennoxg-X510UAR:~$ testparm


    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Unknown parameter encountered: "netbios"
    Ignoring unknown parameter "netbios"
    WARNING: The "syslog" option is deprecated
    Processing section "[MYSHARE]"
    Processing section "[printers]"
    Processing section "[print$]"
    Loaded services file OK.
    WARNING: state directory /var/lib/samba should have permissions 0755 for browsing to work


    WARNING: cache directory /var/cache/samba should have permissions 0755 for browsing to work


    Server role: ROLE_STANDALONE


    Press enter to see a dump of your service definitions


    # Global parameters
    [global]
    dns proxy = No
    log file = /var/log/samba/log.%m
    map to guest = Bad User
    max log size = 1000
    obey pam restrictions = Yes
    pam password change = Yes
    panic action = /usr/share/samba/panic-action %d
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    passwd program = /usr/bin/passwd %u
    server role = standalone server
    server string = %h server (Samba, Ubuntu)
    syslog = 0
    unix password sync = Yes
    usershare allow guests = Yes
    idmap config * : backend = tdb




    [MYSHARE]
    comment = Myshare
    guest ok = Yes
    path = /myshare
    read only = No




    [printers]
    browseable = No
    comment = All Printers
    create mask = 0700
    path = /var/spool/samba
    printable = Yes




    [print$]
    comment = Printer Drivers
    path = /var/lib/samba/printers
    lennoxg@lennoxg-X510UAR:~$

  9. #9
    Join Date
    Jan 2019
    Beans
    16

    Re: cannot upgrade from Ubuntu 18.04 to 20.04.1

    Hi Deadflowr

    I changed the permission on directory /var/lib/samba to 0755
    i also changed the permission on director /var/cache/samba to 0755

    i tried the upgrade again but it still did not work

    Here are the display of the directories after making the changes

    lennoxg@lennoxg-X510UAR:/var/lib/samba$ ls -l
    total 16
    drwxr-xr-x 10 root root 4096 Jul 31 2019 printers
    drwxr-xr-x 3 root root 4096 Jan 18 2019 private
    drwxr-xr-x 2 root sambashare 4096 Feb 26 2019 usershares
    drwxr-xr-x 2 root winbindd_priv 4096 Feb 26 2019 winbindd_privileged
    lennoxg@lennoxg-X510UAR:/var/lib/samba$ cd /var/cache/samba
    lennoxg@lennoxg-X510UAR:/var/cache/samba$ ls -l
    total 40
    -rwxr-xr-x 1 root root 40172 Jan 18 2019 gencache.tdb


    lennoxg@lennoxg-X510UAR:/var/cache/samba$ cd


    lennoxg@lennoxg-X510UAR:~$ testparm


    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Unknown parameter encountered: "netbios"
    Ignoring unknown parameter "netbios"
    WARNING: The "syslog" option is deprecated
    Processing section "[MYSHARE]"
    Processing section "[printers]"
    Processing section "[print$]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE


    Press enter to see a dump of your service definitions


    # Global parameters
    [global]
    dns proxy = No
    log file = /var/log/samba/log.%m
    map to guest = Bad User
    max log size = 1000
    obey pam restrictions = Yes
    pam password change = Yes
    panic action = /usr/share/samba/panic-action %d
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    passwd program = /usr/bin/passwd %u
    server role = standalone server
    server string = %h server (Samba, Ubuntu)
    syslog = 0
    unix password sync = Yes
    usershare allow guests = Yes
    idmap config * : backend = tdb




    [MYSHARE]
    comment = Myshare
    guest ok = Yes
    path = /myshare
    read only = No




    [printers]
    browseable = No
    comment = All Printers
    create mask = 0700
    path = /var/spool/samba
    printable = Yes




    [print$]
    comment = Printer Drivers
    path = /var/lib/samba/printers
    lennoxg@lennoxg-X510UAR:~$



  10. #10
    Join Date
    Jan 2019
    Beans
    16

    Re: cannot upgrade from Ubuntu 18.04 to 20.04.1

    Is there some bug fix for this.

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •