avrdude apt pacote no WSL

0

Eu tentei instalar o avrdude no WSL, mas eu recebo tantos erros, falta de arquivos.Este é o erro que eu tenho

 namz@Namila-Lap:/mnt/d/$ sudo apt-get install avrdude -f --fix-missing                                                                                          
Reading package lists... Done                                                                  
Building dependency tree                                                                       
Reading state information... Done                                                              
The following extra packages will be installed:                                                
  libftdi1                                                                                     
Suggested packages:                                                                            
  avrdude-doc                                                                                  
The following NEW packages will be installed:                                                  
  avrdude libftdi1                                                                             
0 upgraded, 2 newly installed, 0 to remove and 675 not upgraded.                               
Need to get 15.3 kB/279 kB of archives.                                                        
After this operation, 1,109 kB of additional disk space will be used.                          
Do you want to continue? [Y/n] y                                                               
WARNING: The following packages cannot be authenticated!                                       
  libftdi1                                                                                     
Install these packages without verification? [y/N] y                                           
Err http://london.mirrors.linode.com/ubuntu/ vivid/main libftdi1 amd64 0.20-2                  
  404  Not Found [IP: 2a01:7e00:1::b24f:af37 80]                                               
Unable to correct missing packages.                                                            
E: Failed to fetch http://london.mirrors.linode.com/ubuntu/pool/main/libf/libftdi/libftdi1_0.20
-2_amd64.deb  404  Not Found [IP: 2a01:7e00:1::b24f:af37 80]                                   

E: Aborting install.    

Como isso mencionou a falta de um pacote chamado libftdi1 , tentei instalá-lo. Mas também deu um erro >

namz@Namila-Lap:/mnt/d/UoP/CE/Semester-5/Embeded/Lab1$ sudo apt-get install libftdi1 -f --fix-missing
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libftdi1
0 upgraded, 1 newly installed, 0 to remove and 675 not upgraded.
Need to get 15.3 kB of archives.
After this operation, 70.7 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  libftdi1
Install these packages without verification? [y/N] y
Err http://london.mirrors.linode.com/ubuntu/ vivid/main libftdi1 amd64 0.20-2
  404  Not Found [IP: 2a01:7e00:1::b24f:af37 80]
E: Failed to fetch http://london.mirrors.linode.com/ubuntu/pool/main/libf/libftdi/libftdi1_0.20-2_amd64.deb  404  Not Found [IP: 2a01:7e00:1::b24f:af37 80]

E: Internal Error, ordering was unable to handle the media swap

Tudo falhou. Então eu peguei o avrdude_6.3.orig.tar.gz do launchpad.net e tentei instalar (extraindo e rodando ./configure ) então eu peguei outro pacote faltando. Quando tentar instalar esse pacote ausente, obtendo outro ausente e assim por diante ( libusb , libftdi1 , libelf etc)

eu quero saber se podemos instalar o pacote AVRDUDE no WSL ???

Editar: Eu tenho tantos 404 not found links quando sudo apt update e de outros links

    
por namila007 25.01.2018 / 06:54

1 resposta

1

Você pode fazer um

sudo apt-get dist-upgrade

e tente novamente. Estou executando o Windows 10 Education e posso simplesmente instalar avrdude sem qualquer problema pelo repositório.

Aqui está minha saída

user@USER-ROG502VS:/mnt/c/Program Files/MongoDB/Server/3.6/bin$ sudo apt install avrdude     
[sudo] password for kasun:                                                                     
Reading package lists... Done                                                                  
Building dependency tree                                                                       
Reading state information... Done                                                              
The following package was automatically installed and is no longer required:                   
  libfreetype6                                                                                 
Use 'sudo apt autoremove' to remove it.                                                        
The following additional packages will be installed:                                           
  libftdi1                                                                                     
Suggested packages:                                                                            
  avrdude-doc                                                                                  
The following NEW packages will be installed:                                                  
  avrdude libftdi1                                                                             
0 upgraded, 2 newly installed, 0 to remove and 76 not upgraded.                                
Need to get 306 kB of archives.                                                                
After this operation, 1,105 kB of additional disk space will be used.                          
Do you want to continue? [Y/n] y                                                               
Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libftdi1 amd64 0.20-4build1 [15.2 
kB]                                                                                            
Get:2 http://archive.ubuntu.com/ubuntu xenial/universe amd64 avrdude amd64 6.2-5 [291 kB]      
Fetched 306 kB in 20s (15.0 kB/s)                                                              
Selecting previously unselected package libftdi1:amd64.                                        
(Reading database ... 25822 files and directories currently installed.)                        
Preparing to unpack .../libftdi1_0.20-4build1_amd64.deb ...                                    
Unpacking libftdi1:amd64 (0.20-4build1) ...                                                    
Selecting previously unselected package avrdude.                                               
Preparing to unpack .../avrdude_6.2-5_amd64.deb ...                                            
Unpacking avrdude (6.2-5) ...                                                                  
Processing triggers for libc-bin (2.23-0ubuntu9) ...                                           
Processing triggers for man-db (2.7.5-1) ...                                                   
Setting up libftdi1:amd64 (0.20-4build1) ...                                                   
Setting up avrdude (6.2-5) ...                                                                 
Processing triggers for libc-bin (2.23-0ubuntu9) ... 

edit : Se você atualizou o Windows para a versão mais recente, verifique seu bash no armazenamento do Windows, verifique se ele está funcionando corretamente; se não reinstalar, isso deve funcionar bem.

    
por kasper 25.01.2018 / 10:21