Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing U7 after U8 using the installer breaks the installation #4873

Open
TharmiganK opened this issue Sep 5, 2023 · 0 comments
Open
Labels

Comments

@TharmiganK
Copy link
Contributor

Description:

When I have only installed Swan Lake U8 and used the U7 installer to install 2201.7.2, then the installation exit with an error and ballerina files has been removed

wso2@wso2-ThinkPad-X1-Carbon-Gen-8:~/Downloads$ sudo dpkg -i ballerina-2201.8.0-swan-lake-linux-x64.deb 
(Reading database ... 187984 files and directories currently installed.)
Preparing to unpack ballerina-2201.8.0-swan-lake-linux-x64.deb ...
Unpacking ballerina-2201.8.0-swan-lake (2-2201.8.0-swan-lake) ...
Setting up ballerina-2201.8.0-swan-lake (2-2201.8.0-swan-lake) ...
wso2@wso2-ThinkPad-X1-Carbon-Gen-8:~/Downloads$ bal -v
Ballerina 2201.8.0 (Swan Lake Update 8)
Language specification 2023R1
Update Tool 1.3.15
wso2@wso2-ThinkPad-X1-Carbon-Gen-8:~/Downloads$ sudo dpkg -i ballerina-2201.7.2-swan-lake-linux-x64.deb 
Selecting previously unselected package ballerina-2201.7.2-swan-lake.
(Reading database ... 193918 files and directories currently installed.)
Preparing to unpack ballerina-2201.7.2-swan-lake-linux-x64.deb ...
Unpacking ballerina-2201.7.2-swan-lake (2-2201.7.2-swan-lake) ...
dpkg: error processing archive ballerina-2201.7.2-swan-lake-linux-x64.deb (--install):
 trying to overwrite '/usr/lib/ballerina/COPYRIGHT.txt', which is also in package ballerina-2201.8.0-swan-lake 2-2201.8.0-swan-lake
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 ballerina-2201.7.2-swan-lake-linux-x64.deb
wso2@wso2-ThinkPad-X1-Carbon-Gen-8:~/Downloads$ bal -v
bash: /usr/bin/bal: No such file or directory

Same happens when we install U7 first and then try the U8 installer

wso2@wso2-ThinkPad-X1-Carbon-Gen-8:~/Downloads$ sudo dpkg -i ballerina-2201.7.2-swan-lake-linux-x64.deb 
(Reading database ... 187984 files and directories currently installed.)
Preparing to unpack ballerina-2201.7.2-swan-lake-linux-x64.deb ...
Unpacking ballerina-2201.7.2-swan-lake (2-2201.7.2-swan-lake) ...
Setting up ballerina-2201.7.2-swan-lake (2-2201.7.2-swan-lake) ...
Ballerina 2201.7.2 (Swan Lake Update 7)
Language specification 2023R1
Update Tool 1.3.15
wso2@wso2-ThinkPad-X1-Carbon-Gen-8:~/Downloads$ sudo dpkg -i ballerina-2201.8.0-swan-lake-linux-x64.deb 
Selecting previously unselected package ballerina-2201.8.0-swan-lake.
(Reading database ... 193817 files and directories currently installed.)
Preparing to unpack ballerina-2201.8.0-swan-lake-linux-x64.deb ...
Unpacking ballerina-2201.8.0-swan-lake (2-2201.8.0-swan-lake) ...
dpkg: error processing archive ballerina-2201.8.0-swan-lake-linux-x64.deb (--install):
 trying to overwrite '/usr/lib/ballerina/COPYRIGHT.txt', which is also in package ballerina-2201.7.2-swan-lake 2-2201.7.2-swan-lake
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 ballerina-2201.8.0-swan-lake-linux-x64.deb

Steps to reproduce:

  1. Uninstall previous Ballerina installations completely.
  2. Install U8 using the test pack.
  3. Try to install U7 with the installer available in the website.

Affected Versions:
Ballerina Swan Lake U8

OS, DB, other environment details and versions:
Ubuntu(x64) - used the Debian installers

Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant