Skype安装失败/手动安装后无法更新,如何通过Ubuntu包管理器安装?
Hey there! Let's work through your Skype problems on Ubuntu—these are super common issues, so I’ve got you covered.
If you’re having trouble installing Skype manually, using Ubuntu’s official package manager (APT) is the most reliable method. Here’s how to do it properly:
- First, install the dependencies needed to add external repositories:
sudo apt update && sudo apt install -y curl apt-transport-https - Next, import Microsoft’s GPG key to verify the authenticity of Skype packages:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /usr/share/keyrings/microsoft.gpg > /dev/null - Add Skype’s official repository to your system’s source list:
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/skype stable main" | sudo tee /etc/apt/sources.list.d/skype-stable.list - Finally, update your package list and install Skype:
sudo apt update && sudo apt install -y skypeforlinux
This method ensures you get official, updated versions directly from Microsoft, and avoids the installation errors that often come with manual downloads.
If you previously installed Skype manually (via a downloaded .deb or binary) and now can’t update it, the root issue is that your system doesn’t recognize the manual installation as part of the package manager ecosystem. Here’s how to fix this:
- First, fully remove the manual Skype installation:
- If you installed via a .deb file, run:
sudo dpkg -r skypeforlinux
Then clean up residual files and dependencies:sudo apt autoremove --purge -y skypeforlinux - If you used an extracted binary (e.g., downloaded a zip/tar file), delete the installation folder (usually
/opt/skypeforlinux/) and desktop shortcut:sudo rm -rf /opt/skypeforlinux/sudo rm /usr/share/applications/skypeforlinux.desktop
- If you installed via a .deb file, run:
- Clean up user-specific Skype data (optional but recommended to avoid conflicts):
rm -rf ~/.config/skypeforlinux/rm -rf ~/.cache/skypeforlinux/ - Make sure to close all Skype processes before doing the above—you can kill them with:
pkill skypeforlinux - Now, follow the steps in the first section above to reinstall Skype via the package manager. Once done, you’ll be able to update Skype normally through APT or Ubuntu’s Software Center, and the "Install" button error should disappear.
内容的提问来源于stack exchange,提问作者Green

