Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 06/06/2018, à 11:12

anthokalel

The following packages have unmet dependencies:

Bonjour,

Lorsque je souhaite installer Torch, je rencontre un problème. Pourtant, j'ai suivi à la lettre les instructions sur ce tutoriel : http://torch.ch/docs/getting-started.html#_


Voici l'erreur que le Terminal me renvoie :

anthony@anthony-VirtualBox:~/torch$ bash install-deps
Hit:1 [url]http://fr.archive.ubuntu.com/ubuntu[/url] xenial InRelease
Hit:2 [url]http://archive.canonical.com/ubuntu[/url] xenial InRelease                     
Get:3 [url]http://fr.archive.ubuntu.com/ubuntu[/url] xenial-updates InRelease [109 kB]    
Get:4 [url]http://fr.archive.ubuntu.com/ubuntu[/url] xenial-backports InRelease [107 kB]  
Get:5 [url]http://security.ubuntu.com/ubuntu[/url] xenial-security InRelease [107 kB]     
Reading package lists... Done                                 
E: Release file for [url]http://fr.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease[/url] is not valid yet (invalid for another 13h 36min 5s). Updates for this repository will not be applied.
E: Release file for [url]http://fr.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease[/url] is not valid yet (invalid for another 13h 27min 55s). Updates for this repository will not be applied.
E: Release file for [url]http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease[/url] is not valid yet (invalid for another 16h 1min 24s). Updates for this repository will not be applied.
Some portion of the update is failed
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-software-properties is already the newest version (0.96.20.7).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
==> Found Ubuntu version 18.xx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
software-properties-common is already the newest version (0.96.24.32.3).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libfftw3-dev : Depends: libfftw3-double3 (= 3.3.4-2ubuntu1) but 3.3.7-1 is to be installed
                Depends: libfftw3-single3 (= 3.3.4-2ubuntu1) but 3.3.7-1 is to be installed
 libgraphicsmagick1-dev : Depends: libjpeg-dev
                          Depends: liblcms2-dev but it is not going to be installed
                          Depends: libwmf-dev but it is not going to be installed
                          Depends: libx11-dev but it is not going to be installed
                          Depends: libsm-dev but it is not going to be installed
                          Depends: libice-dev but it is not going to be installed
                          Depends: libxext-dev but it is not going to be installed
                          Depends: libxml2-dev but it is not going to be installed
                          Depends: libfreetype6-dev but it is not going to be installed
                          Depends: libtiff-dev
                          Depends: libjbig-dev but it is not going to be installed
                          Depends: zlib1g-dev but it is not going to be installed or
                                   libz-dev
                          Depends: libpng-dev
                          Depends: libexif-dev but it is not going to be installed
                          Depends: libbz2-dev but it is not going to be installed
                          Depends: libltdl-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Pouvez vous m'aider s'il vous plait ?


Modération : merci d'utiliser les balises code (explications ici).

Dernière modification par cqfd93 (Le 06/06/2018, à 12:26)

Hors ligne

#2 Le 06/06/2018, à 12:06

LukePerp

Re : The following packages have unmet dependencies:

Bonjour, essayes cette commande qui va réparer et nettoyer, puis retentes d'installer tes paquets :

sudo dpkg --configure -a ; sudo apt-get install -fy ; sudo apt-get autoclean ; sudo apt-get autoremove --purge -y ; sudo apt update

Dernière modification par LukePerp (Le 06/06/2018, à 12:06)


Desktop & Laptop - Ubuntu Mate dernière LTS - Intel i5 - 16 Go - Dual boot Windows offline

Hors ligne

#3 Le 06/06/2018, à 12:36

anthokalel

Re : The following packages have unmet dependencies:

Merci pour votre réponse.

J'ai l'erreur suivante pour la dernière commande :

anthony@anthony-VirtualBox:~/torch$ sudo dpkg --configure -a ; sudo apt-get install -fy ; sudo apt-get autoclean ; sudo apt-get autoremove --purge -y ; sudo apt update -o Acquire::Check-Valid-Until=false
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hit:1 [url]http://fr.archive.ubuntu.com/ubuntu[/url] xenial InRelease
Hit:3 [url]http://archive.canonical.com/ubuntu[/url] xenial InRelease                 
Get:2 [url]http://fr.archive.ubuntu.com/ubuntu[/url] xenial-updates InRelease [109 kB]                          
Get:4 [url]http://fr.archive.ubuntu.com/ubuntu[/url] xenial-backports InRelease [107 kB]       
Get:5 [url]http://security.ubuntu.com/ubuntu[/url] xenial-security InRelease [107 kB]         
Reading package lists... Done                                 
E: Release file for [url]http://fr.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease[/url] is not valid yet (invalid for another 12h 55min 59s). Updates for this repository will not be applied.
E: Release file for [url]http://fr.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease[/url] is not valid yet (invalid for another 12h 47min 49s). Updates for this repository will not be applied.
E: Release file for [url]http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease[/url] is not valid yet (invalid for another 15h 21min 17s). Updates for this repository will not be applied.

Qu'est ce que cela signifie ?

Dernière modification par anthokalel (Le 06/06/2018, à 12:39)

Hors ligne

#4 Le 06/06/2018, à 12:38

xubu1957

Re : The following packages have unmet dependencies:

Bonjour,

Pour ajouter toi-même les balises code à ton précédent message #3 :        Merci      wink

  • Cliquer sur  le lien « Modifier » en bas à droite du message

  • Sélectionner le texte

  • Cliquer sur le <> de l'éditeur de message

1485703524.png

comme indiqué dans le : Retour utilisable de commande

_ _ _

J'ai trouvé cette page > installing-torch-7-deep-learning-on-ubuntu-16-04.

Dernière modification par xubu1957 (Le 06/06/2018, à 12:57)


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#5 Le 06/06/2018, à 13:03

anthokalel

Re : The following packages have unmet dependencies:

Oui justement, c'est exactement ce tutoriel que j'ai suivi !

Hors ligne

#6 Le 06/06/2018, à 13:06

xubu1957

Re : The following packages have unmet dependencies:

Tu avais passé cette commande :

sudo apt-get install --no-install-recommends git software-properties-common

?


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#7 Le 06/06/2018, à 13:15

anthokalel

Re : The following packages have unmet dependencies:

Oui je l'ai passé.

Je viens de recommencer la manipulation, j'ai toujours le même problème de "dependencies".

Dernière modification par anthokalel (Le 06/06/2018, à 13:16)

Hors ligne

#8 Le 06/06/2018, à 13:20

xubu1957

Re : The following packages have unmet dependencies:

Je rajoute le tutoriel :

Installing Torch 7 deep learning on Ubuntu 16.04 a écrit :

Make sure you have followed caffe setup if not atleast install Prerequisite packages from that post.

Step 1: install general dependencies

sudo apt-get install --no-install-recommends git software-properties-common

Step 2: gedit ~/.bashrc (append following lines) and restart terminal (source ~/.bashrc)

export TORCH_ROOT=~/torch

Step 3: Download Torch repo in that root location

git clone https://github.com/torch/distro.git $TORCH_ROOT --recursive

Step 4: Change directory to Torch folder

cd $TORCH_ROOT

Step 5: Install torch dependencies

./install-deps

Step 6: Now, lets install torch

./install.sh -b

Step 7: Install some extra dependencies after restarting terminal (source ~/.bashrc)

sudo apt-get install --no-install-recommends libhdf5-serial-dev liblmdb-dev

luarocks install tds
luarocks install "https://raw.github.com/deepmind/torch-hdf5/master/hdf5-0-0.rockspec"
luarocks install "https://raw.github.com/Neopallium/lua-pb/master/lua-pb-scm-0.rockspec"
luarocks install lightningmdb 0.9.18.1-1 LMDB_INCDIR=/usr/include LMDB_LIBDIR=/usr/lib/x86_64-linux-gnu

# If you have installed NCCL
luarocks install "https://raw.githubusercontent.com/ngimel/nccl.torch/master/nccl-scm-1.rockspec"

luarocks install nngraph 
luarocks install optim
luarocks install nn

If you’d like to train on an NVIDIA GPU using CUDA (this can be to about 15x faster), you’ll of course need the GPU, and you will have to install the CUDA Toolkit. Then get the cutorch and cunn packages:

luarocks install cutorch
luarocks install cunn

Aditionally to load caffe models in torch

luarocks install loadcaffe

Step 8: Install torch/demos from github by command:

git clone https://github.com/torch/demos

Go into the demos folder, then just run one of the demos:

th demos/train-on-cifar/train-on-cifar.lua

Training screenshot(...)

_ _ _

Tu avais relancé le terminal comme indiqué dans les étapes d'installation ?

Dernière modification par xubu1957 (Le 06/06/2018, à 13:23)


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#9 Le 06/06/2018, à 13:31

anthokalel

Re : The following packages have unmet dependencies:

Non je ne l'avais pas redémarré. Je l'ai fait en redémarrant et j'ai toujours le même problème.

Par contre, que signifie les mots : "

gedit ~/.bashrc (append following lines) and restart terminal (source ~/.bashrc)

"

Que faut-il faire concrètement ?

Hors ligne

#10 Le 06/06/2018, à 13:35

inbox

Re : The following packages have unmet dependencies:

Salut,

Il y a ce message d'erreur. Ce problème doit être réglé avant tout :

E: Release file for [url]http://fr.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease[/url] is not valid yet (invalid for another 12h 55min 59s). Updates for this repository will not be applied.
E: Release file for [url]http://fr.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease[/url] is not valid yet (invalid for another 12h 47min 49s). Updates for this repository will not be applied.
E: Release file for [url]http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease[/url] is not valid yet (invalid for another 15h 21min 17s). Updates for this repository will not be applied.

La partie importante étant :

is not valid yet (invalid for another xxh xxmin xxs

J'ai déjà rencontré ce problème. L'heure du PC était en retard. Cela pourrait aussi être un problème de date. A voir...

A+


Un problème résolu ? Indiquez le en modifiant le titre du sujet.

Hors ligne

#11 Le 06/06/2018, à 13:46

anthokalel

Re : The following packages have unmet dependencies:

Merci je n'ai plus ce problème lorsque j'utilise la commande :

sudo dpkg --configure -a ; sudo apt-get install -fy ; sudo apt-get autoclean ; sudo apt-get autoremove --purge -y ; sudo apt update

Cependant, j'ai toujours l'erreur que j'avais au début lorsque je fais :

anthony@anthony-VirtualBox:~/torch$ bash install-deps
Hit:1 [url]http://fr.archive.ubuntu.com/ubuntu[/url] xenial InRelease
Hit:2 [url]http://archive.canonical.com/ubuntu[/url] xenial InRelease                     
Get:3 [url]http://fr.archive.ubuntu.com/ubuntu[/url] xenial-updates InRelease [109 kB]    
Get:4 [url]http://fr.archive.ubuntu.com/ubuntu[/url] xenial-backports InRelease [107 kB]  
Get:5 [url]http://security.ubuntu.com/ubuntu[/url] xenial-security InRelease [107 kB]     
Reading package lists... Done                                 
E: Release file for [url]http://fr.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease[/url] is not valid yet (invalid for another 13h 36min 5s). Updates for this repository will not be applied.
E: Release file for [url]http://fr.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease[/url] is not valid yet (invalid for another 13h 27min 55s). Updates for this repository will not be applied.
E: Release file for [url]http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease[/url] is not valid yet (invalid for another 16h 1min 24s). Updates for this repository will not be applied.
Some portion of the update is failed
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-software-properties is already the newest version (0.96.20.7).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
==> Found Ubuntu version 18.xx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
software-properties-common is already the newest version (0.96.24.32.3).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libfftw3-dev : Depends: libfftw3-double3 (= 3.3.4-2ubuntu1) but 3.3.7-1 is to be installed
                Depends: libfftw3-single3 (= 3.3.4-2ubuntu1) but 3.3.7-1 is to be installed
 libgraphicsmagick1-dev : Depends: libjpeg-dev
                          Depends: liblcms2-dev but it is not going to be installed
                          Depends: libwmf-dev but it is not going to be installed
                          Depends: libx11-dev but it is not going to be installed
                          Depends: libsm-dev but it is not going to be installed
                          Depends: libice-dev but it is not going to be installed
                          Depends: libxext-dev but it is not going to be installed
                          Depends: libxml2-dev but it is not going to be installed
                          Depends: libfreetype6-dev but it is not going to be installed
                          Depends: libtiff-dev
                          Depends: libjbig-dev but it is not going to be installed
                          Depends: zlib1g-dev but it is not going to be installed or
                                   libz-dev
                          Depends: libpng-dev
                          Depends: libexif-dev but it is not going to be installed
                          Depends: libbz2-dev but it is not going to be installed
                          Depends: libltdl-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Hors ligne