# \[Resolved\] Error while updating from CLI + error nginx

**URL:** https://forum.yunohost.org/t/resolved-error-while-updating-from-cli-error-nginx/3574
**Category:** Support
**Tags:** french, english
**Created:** [October 1, 2017, 5:39pm UTC](https://forum.yunohost.org/t/resolved-error-while-updating-from-cli-error-nginx/3574 "2017-10-01T17:39:20Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ppr](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/p/8c91f0/32.png) [@ppr](https://forum.yunohost.org/u/ppr)
#### Post date: [October 1, 2017, 7:10pm UTC](https://forum.yunohost.org/t/resolved-error-while-updating-from-cli-error-nginx/3574/2 "2017-10-01T19:10:49Z")

</div>

Bonsoir @nath5394 ,

FR : Normalement, la mise à niveau se fait via les commandes suivantes :  
EN : Usually upgrade is done with these commands:

edit :

> FR : **toujours faire une sauvegarde avant.**  
> EN : **always backup before.**

> apt-get update  
> apt-get upgrade  
> apt-get dist-upgrade

FR : Sinon, en utilsant la commande  
EN : Otherwise using command

> yunohost tools update --verbose

FR : il est nécessaire de vérifier ton  
EN : it’s necessary to checkup your

> /etc/apt folder or sources lists

> [@\[solved\] Can not upgrade to 2.7 (error 404)](https://forum.yunohost.org/t/solved-can-not-upgrade-to-2-7-error-404/3389):
>
> Hi, I am trying to upgrade to Yunohost 2.7 but it fails while contacting a package url : root@xxxxx:~# yunohost tools update Traceback (most recent call last): File "/usr/bin/yunohost", line 217, in \<module\> timeout=opts.timeout, File "/usr/lib/python2.7/dist-packages/moulinette/\_\_init\_\_.py", line 139, in cli moulinette.run(args, output\_as=output\_as, password=password, timeout=timeout) File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py", line 358, in run ret …

> [@\[solved\] Can not upgrade to 2.7 (error 404)](https://forum.yunohost.org/t/solved-can-not-upgrade-to-2-7-error-404/3389/2):
>
> It was an issue with my /etc/apt sources directory issue ; sorry about that

FR : Attention  
EN : Carefull

> [@Debian Stretch | YunoHost is NOT YET compatible | YunoHost N'EST PAS ENCORE compatible](https://forum.yunohost.org/t/debian-stretch-yunohost-is-not-yet-compatible-yunohost-nest-pas-encore-compatible/3048/5):
>
> Another important information: we have been informed that some of you have had and unintended upgrade to Debian Strech while using yunohost tools upgrade. This is because, in your apt sources files (the files located in /etc/apt/sources.list and /etc/apt/sources.list.d/\* the word stable is used instead of jessie). To solve this problem, you can either check those files and replace stable with jessiewhen it applies or use this application we wrote that will do this job for you: [https://github…](https://github.com/YunoHost-Apps/no_stretch_ynh)

ppr

---

_[View the full topic](https://forum.yunohost.org/t/resolved-error-while-updating-from-cli-error-nginx/3574)._
