คำถามติดแท็ก apt

Advanced Packaging Tool ผู้จัดการบรรจุภัณฑ์สำหรับการแจกแจงแบบเดเบียน นอกจากนี้ยังเป็นเครื่องมือที่ใช้มากที่สุดสำหรับการติดตั้งแพ็คเกจใน Ubuntu คำถามเกี่ยวกับการใช้เครื่องมือ apt ใด ๆ ควรใช้แท็กนี้

5
apt-get update สำหรับที่เก็บเฉพาะ
เมื่อฉันเพิ่ม PPA apt-get updateและฉันต้องการที่จะติดตั้งบางส่วนของเนื้อหาของมันก็เป็นที่น่ารำคาญมากอีกครั้งการปรับปรุงทุกรายการฉลาดของฉันโดยใช้ เป็นไปได้หรือไม่ที่จะซิงค์เฉพาะเนื้อหาของที่เก็บที่กำหนด?

4
ข้อผิดพลาด dpkg:“ พยายามเขียนทับไฟล์ซึ่งอยู่ใน…”
ตัวอย่างเช่น: $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java …

6
ข้อผิดพลาด :: คุณต้องใส่ URIs บางรายการในซอร์สของคุณ
ฉันกำลังพยายามติดตั้ง PIL โมดูลหลามบน Ubuntu ก่อนอื่นฉันต้องติดตั้งแพ็คเกจที่เรียกว่า python-imaging โดยใช้คำสั่งต่อไปนี้ sudo apt-get build-dep python-imaging เมื่อฉันลองทำสิ่งนี้ฉันจะได้รับข้อผิดพลาด E: You must put some 'source' URIs in your sources.list ฉันเห็นคำถามนี้ซึ่งแสดงวิธีการแก้ไขผ่าน GUI แต่ฉันใช้บรรทัดคำสั่ง ไม่มีใครรู้ว่าฉันสามารถแก้ไขข้อผิดพลาดนี้ได้หรือไม่? อัปเดต: ตามคำตอบด้านล่างฉันได้อัปเดตรายการแพ็กเกจแล้ว แต่ตอนนี้ฉันได้รับข้อผิดพลาดนี้ ไม่แน่ใจว่าเกี่ยวข้องหรือไม่ถ้าไม่ใช่ฉันจะเริ่มคำถามใหม่เพราะฉันไม่สามารถหาข้อผิดพลาดได้ทุกที่ E: Build-Depends dependency for python-imaging cannot be satisfied because candidate version of package python-all-dev can't satisfy version requirements
107 apt 

7
ไม่มีการอัปเดตเพิ่มเติมสำหรับ Google Chrome 32 บิต
ฉันใช้ Google Chrome 48.0 32 บิต วันนี้เมื่อฉันเปิดตัว Google Chrome ฉันได้รับข้อความนี้: This computer will soon stop receiving Google Chrome updates because this Linux system will no longer be supported ฉันคิดว่า Ubuntu 14.04 รองรับเป็นเวลาห้าปีเกิดอะไรขึ้นที่นี่ และใน Ubuntu แบบ 64 บิตฉันได้รับข้อผิดพลาดจาก Update Manager และapt-get update: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry …


10
วิธีสร้างที่เก็บ APT ในพื้นที่
ฉันต้องการสร้างที่เก็บในเครื่องของฉันเองบน LAN ของฉันเพื่อให้เครื่องบน LAN สามารถอัปเดตและอัปเกรดได้ ฉันต้องการดาวน์โหลดแพ็คเกจและเก็บไว้ในเซิร์ฟเวอร์ในพื้นที่ของฉันเพื่อให้ฉันสามารถอัปเกรดอัปเกรดติดตั้งและอื่น ๆ ได้โดยไม่ต้องใช้อินเทอร์เน็ต
103 apt  repository 

3
apt-get install vs pip install
ฉันสับสนเล็กน้อยเกี่ยวกับกรณีที่ต้องใช้คำสั่งข้างต้นเมื่อดาวน์โหลดแพ็คเกจหลาม ฉันพยายามดาวน์โหลดแพ็คเกจชื่อ pyudev ตามคำตอบของคำถามนี้ ฉันใช้คำสั่งนี้: sudo pip install python-pyudev แต่ได้รับข้อความต่อไปนี้: Downloading/unpacking python-pyudev Could not find any downloads that satisfy the requirement python-pyudev Cleaning up... No distributions at all found for python-pyudev Storing complete log in /home/vineet/.pip/pip.log อย่างไรก็ตามสิ่งต่อไปนี้ใช้ได้ผล: sudo apt-get install python-pyudev เมื่อเป็นที่apt-getควรจะนำมาใช้ในการติดตั้งแพคเกจและเมื่อมีการpython-pipใช้งานอย่างไร

2
ฉันจะติดตั้ง Git เวอร์ชันล่าสุดด้วย apt ได้อย่างไร
ฉันอ่านเกี่ยวกับข้อบกพร่องด้านความปลอดภัยใน Git ซึ่งได้รับการแก้ไขในรุ่น 2.2.1 ปัจจุบันฉันมี Git 2.1.0 บนระบบของฉัน (Ubuntu 14.10) และพยายามติดตั้งใหม่โดยใช้ฉลาด อย่างไรก็ตามฉลาดบอกฉันว่าฉันมีรุ่นล่าสุด เว็บไซต์ Git ไม่มีรุ่นที่สร้างไว้ล่วงหน้าสำหรับ Linux พวกเขาบอกว่าคุณสามารถติดตั้งได้ด้วยผู้จัดการแพ็คเกจ หากไม่มีการสร้างจากแหล่งที่มาฉันจะติดตั้ง Git เวอร์ชันล่าสุดได้อย่างไร

7
ฉันจะกู้คืนไฟล์การกำหนดค่าได้อย่างไร
ฉันต้องการกู้คืน LightDM กลับสู่สถานะเริ่มต้นเพราะ /etc/lightdm/unity-greeter.confตอนนี้บางไฟล์ว่างเปล่า การลบ/etc/lightdm/unity-greeter.confและเรียกใช้sudo apt-get install --reinstall unity-greeterไม่ได้สร้างไฟล์กำหนดค่าใหม่ตามที่คุณคาดหวัง ฉันจะคืนค่าไฟล์กำหนดค่าที่ขาดไปได้อย่างไร

5
“ debconf: DbDriver” config“: config.dat ถูกล็อคโดยกระบวนการอื่น: ทรัพยากรไม่พร้อมใช้งานชั่วคราว” ขณะติดตั้งแพ็คเกจ
ฉันพยายามติดตั้งflashybridแต่เมื่อฉันป้อนapt-get install flashybridคำสั่งฉันได้รับข้อผิดพลาดนี้: root@user-desktop:/home/user# apt-get install flashybrid Reading package lists... Done Building dependency tree Reading state information... Done flashybrid is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space …
93 apt  debconf 

3
ฉันจะติดตั้ง PostgreSQL 9.6 บน Ubuntu ทุกรุ่นได้อย่างไร
ฉันจะติดตั้ง PostgreSQL 9.6 บน Ubuntu ทุกรุ่นได้อย่างไรเพราะมันไม่ได้เป็นเวอร์ชั่นล่าสุดโดยค่าเริ่มต้น Ubuntu Xenial (16.04) มาพร้อมกับ PostgreSQL 9.5 จากแหล่งเก็บข้อมูลเริ่มต้น

12
การปรับปรุง apt-get ล้มเหลวในการดึงไฟล์ข้อผิดพลาด“ การแก้ไขความล้มเหลวชั่วคราว…”
Err http://archive.canonical.com natty InRelease Err http://security.ubuntu.com oneiric-security InRelease Err http://extras.ubuntu.com natty InRelease Err http://security.ubuntu.com oneiric-security Release.gpg Temporary failure resolving ‘security.ubuntu.com’ Err http://archive.canonical.com natty Release.gpg Temporary failure resolving ‘archive.canonical.com’ Err http://extras.ubuntu.com natty Release.gpg Temporary failure resolving ‘extras.ubuntu.com’ Err http://gb.archive.ubuntu.com oneiric InRelease Err http://gb.archive.ubuntu.com oneiric-updates InRelease Err http://gb.archive.ubuntu.com natty-backports InRelease Err http://gb.archive.ubuntu.com …
91 apt 

9
ลายเซ็นต่อไปนี้ไม่ถูกต้อง: EXPKEYSIG 1397BC53640DB551
นี่คือปัญหา 952287: [ความคิดเห็นของผู้ใช้ - เสถียร] รายงานของ Chrome สำหรับ Linux ล้มเหลวในการติดตั้ง / อัปเดตเนื่องจากคีย์การลงนาม GPG ที่หมดอายุแล้ว วันนี้การทำงานaptในเครื่องของฉันทั้งหมดมีข้อผิดพลาดนี้กับ Google PPA (สำหรับgoogle-chrome): me@mymachine:~$ sudo apt clean && sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt autoclean -y && sudo snap refresh [sudo] password for me: Ign:1 …

1
“ apt-get clean” และ“ apt-get clean all” ต่างกันอย่างไร?
อะไรคือความแตกต่างระหว่างคำสั่งนี้: sudo apt-get clean และคำสั่งนี้: sudo apt-get clean all ในระบบ Lubuntu 12.04 ของฉันการจำลองคำสั่งเหล่านี้แสดงให้เห็นถึงพฤติกรรมของพวกเขาที่เหมือนกัน: ek@Apok:~$ apt-get -s clean NOTE: This is only a simulation! apt-get needs root privileges for real execution. Keep also in mind that locking is deactivated, so don't depend on the relevance to the real current situation! Del …
90 command-line  apt 

9
“ ข้อผิดพลาด GPG: เผยแพร่: ลายเซ็นต่อไปนี้ไม่ถูกต้อง: BADSIG”
ฉันรันคำสั่งนี้ใน Terminal: sudo apt-get update การอัปเดตลงท้ายด้วยรายงานข้อผิดพลาดต่อไปนี้: W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com> W: GPG error: http://ppa.launchpad.net …
88 apt 

โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.