
我嘗試在 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
,,libftdi1
等等libelf
)
我想知道我們可以AVRDUDE
在 WSL 上安裝軟體包嗎?
編輯:我從其他連結中 404 not found links
得到了很多sudo apt update
答案1
你能做一個
sudo apt-get dist-upgrade
然後再試一次。我運行的是 Windows 10 教育版,我可以透過儲存庫輕鬆安裝,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 升級到最新版本,請檢查bash
Windows 商店,確保其正常運作,如果沒有重新安裝,則應該可以正常運作。