1

I had Unity 5.3.4f1 installed, but I wanted to upgrade to the latest version which is 2017.2.0f3 so I downloaded the .deb file from here then I tried to install it so I typed:

sudo dpkg -i unity-editor_amd64-2017.2.0f3.deb

which produced the following output after some time:

(Reading database ... 294886 files and directories currently installed.)
Preparing to unpack unity-editor_amd64-2017.2.0f3.deb ...
Unpacking unity-editor (2017.2.0f3) over (5.3.4f1) ...
dpkg-deb (subprocess): cannot copy archive member from 'unity-editor_amd64-2017.2.0f3.deb' to decompressor pipe: unexpected end of file or stream
dpkg-deb: error: subprocess paste returned error exit status 2
dpkg: error processing archive unity-editor_amd64-2017.2.0f3.deb (--install):
 cannot copy extracted data for './opt/Unity/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/jaxen-1.1.jar' to '/opt/Unity/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/jaxen-1.1.jar.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
 unity-editor_amd64-2017.2.0f3.deb

Why is it and how can I fix it?

Videonauth
  • 33,815

1 Answers1

1

Simply remove Unity folder from /opt/ and use gdebi to install the new version, which has proven far better than using dpkg and worrying about the dependencies. So simply do:

sudo rm -r /opt/Unity/
sudo apt update
sudo apt install gdebi
sudo gdebi unity-editor_amd64-2017.2.0f3.deb
Videonauth
  • 33,815