error Upgrade Ubuntu 16.04 LTS to Ubuntu 18.04 LTS  [SOLVED]

Locked
Nikitaidis
Posts: 44
Joined: Sun 28. Apr 2019, 13:59

error Upgrade Ubuntu 16.04 LTS to Ubuntu 18.04 LTS

Post by Nikitaidis »

Hello
i get error when i Upgrade Ubuntu 16.04 LTS to Ubuntu 18.04 LTS

Error: The following files need to be updated and are not readable or
writable. Please set correct file permissions.





root@vps:~# php keyhelp_ubuntu_upgrade_16_to_18.php

_ __ _ _ _ (R)
| |/ /___ _ _| |_| |___| |___
| | / -_) |_/ | _ | -_) | _ \
|_|\_\___|\__, |_| |_|___|_| _/ Your Administration-Panel
=========== |___/ ========== |_| =========================================

This script performs an operating system upgrade on your server.

From: Ubuntu 16.04 To: Ubuntu 18.04


- Instructions -----------------------------------------------------------

Step 1)
This script performs necessary tasks in preparation for the upgrade.

Step 2)
The program flow is handed over to the ubuntu application
"do-release-upgrade". Please follow the instructions of this program.
The system is then rebooted.
Note: On questions about "Should system config files be overwritten"
please answer with "Keep the local version currently installed".

Step 3)
Please run the command "phpenmod ioncube". Then start this script again
with "php keyhelp_ubuntu_upgrade_16_to_18.php"

Step 4)
Updates configuration files, then reboots the system. Your server is now
ready for use.

Note: Once you begin the upgrade, you should go through it completely.
If you cancel the upgrade during execution, any changes must be manually
undone. It is highly recommended to make a backup in advance!

--------------------------------------------------------------------------

> Pre-checking system...

Error: The following files need to be updated and are not readable or
writable. Please set correct file permissions.

/etc/update-manager/release-upgrades
User avatar
Alexander
Keyweb AG
Posts: 3809
Joined: Wed 20. Jan 2016, 02:23

Re: error Upgrade Ubuntu 16.04 LTS to Ubuntu 18.04 LTS  [SOLVED]

Post by Alexander »

There should be a file at the specified path with the default content:

Code: Select all

# Default behavior for the release upgrader.

[DEFAULT]
# Default prompting behavior, valid options:
#
#  never  - Never check for a new release.
#  normal - Check to see if a new release is available.  If more than one new
#           release is found, the release upgrader will attempt to upgrade to
#           the release that immediately succeeds the currently-running
#           release.
#  lts    - Check to see if a new LTS release is available.  The upgrader
#           will attempt to upgrade to the first LTS release available after
#           the currently-running one.  Note that this option should not be
#           used if the currently-running release is not itself an LTS
#           release, since in that case the upgrader won't be able to
#           determine if a newer release is available.
Prompt=never
Does it not exists?
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
yockl
Posts: 32
Joined: Fri 17. Nov 2017, 15:12

Re: error Upgrade Ubuntu 16.04 LTS to Ubuntu 18.04 LTS

Post by yockl »

Hello,

I have the same issue on my side. The folder and file (/etc/update-manager/release-upgrades) is not existing on my side. Should I manually generate the missing folder (update-manager) and file (release-upgrades)?

Thanks in advanced
User avatar
Alexander
Keyweb AG
Posts: 3809
Joined: Wed 20. Jan 2016, 02:23

Re: error Upgrade Ubuntu 16.04 LTS to Ubuntu 18.04 LTS

Post by Alexander »

Hello,

try to install 'update-manager-core' first:

Code: Select all

apt-get install update-manager-core
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Locked