# Installing Elasticsearch 7.17

**URL:** <https://discuss.elastic.co/t/installing-elasticsearch-7-17/339887>\
**Category:** Elasticsearch\
**Created:** [August 2, 2023, 5:12am UTC](https://discuss.elastic.co/t/installing-elasticsearch-7-17/339887 "2023-08-02T05:12:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Kumar\_Jaiswal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_kumar_jaiswal/32/123525_2.png) [@Rahul\_Kumar\_Jaiswal](https://discuss.elastic.co/u/Rahul_Kumar_Jaiswal)\
**Post date:** [August 2, 2023, 5:12am UTC](https://discuss.elastic.co/t/installing-elasticsearch-7-17/339887/1 "2023-08-02T05:12:10Z")

</div>

I am trying to reinstall the elasticsearch same version on ubuntu 20.04 but I am getting the below error again and again. I have tried almost all the solution given on google but the error was not resolved. Previously same version was running fine. Then I thought to upgrade it to 8.9 but I started getting the same error in reinstalling the elasticsearch after removing it.

Error:

sudo apt-get install elasticsearch  
Reading package lists... Done  
Building dependency tree  
Reading state information... Done  
The following NEW packages will be installed:  
elasticsearch  
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.  
Need to get 0 B/318 MB of archives.  
After this operation, 531 MB of additional disk space will be used.  
(Reading database ... 404439 files and directories currently installed.)  
Preparing to unpack .../elasticsearch\_7.17.12\_amd64.deb ...  
dpkg: error processing archive /var/cache/apt/archives/elasticsearch\_7.17.12\_amd64.deb (--unpack):  
new elasticsearch package pre-installation script subprocess returned error exit status 1  
Errors were encountered while processing:  
/var/cache/apt/archives/elasticsearch\_7.17.12\_amd64.deb  
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please help me out to resolve it.  
Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 30, 2023, 5:12am UTC](https://discuss.elastic.co/t/installing-elasticsearch-7-17/339887/2 "2023-08-30T05:12:41Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
