WSL의 avrdude apt 패키지

WSL의 avrdude apt 패키지

WSL에 avrdude를 설치하려고 했지만 오류가 너무 많아 파일이 누락되었습니다. 이것이 제가 받은 오류입니다.

 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.    

여기에 이라는 패키지가 없다고 언급되었으므로 libftdi1적절한 설치를 시도했습니다. 하지만 오류도 발생했습니다. >

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

모든 것이 실패했습니다. 그래서 launchpad.net에서 패키지를 받아서 avrdude_6.3.orig.tar.gz설치(추출 및 실행)하려고 하면 ./configure또 다른 누락된 패키지가 나타납니다. 누락된 패키지를 설치하려고 하면 다른 패키지 가 누락되는 등( libusb, 등) 이 발생합니다.libftdi1libelf

AVRDUDEWSL에 패키지를 설치할 수 있는지 알고 싶습니다 ???

편집: 다른 링크에서 너무 많은 404 not found links것을 얻었습니다 .sudo apt update

답변1

당신은 할 수 있습니까?

sudo apt-get dist-upgrade

그리고 다시 시도해 보세요. 저는 Windows 10 Education을 사용하고 있으며 avrdude저장소 별 문제 없이 간단히 설치할 수 있습니다.

내 결과는 다음과 같습니다.

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) ... 

편집하다: Windows를 최신 버전으로 업그레이드한 경우 bashWindows 스토어를 확인하여 제대로 작동하는지 확인하세요. 다시 설치하지 않으면 제대로 작동할 것입니다.

관련 정보