Issues related to Ubuntu OS or related distributions
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3 KiB

3 years ago
  1. # ubuntu
  2. Issues related to Ubuntu OS or related distributions
  3. ## apt errors
  4. If you want to delete an wrong or non-working repository you can listed and delete by going to:
  5. ```
  6. $ cd /etc/apt/sources.list.d
  7. $ ls
  8. docker.list elementary.list owncloud.list patches.list
  9. ```
  10. then just remove the non wanted `.list` directory by:
  11. ```
  12. $ sudp rm owncloud.list
  13. ```
  14. considering that we want to delete the `owncloud` repository.
  15. Other for to do it is by using the `apt-key del` command, if there is a gpg reposotory. Thus, first we need to list the repositories to determine which will be removed:
  16. ```
  17. $ sudo apt-key list
  18. /etc/apt/trusted.gpg
  19. --------------------
  20. pub rsa2048 2015-09-28 [SC] [expires: 2022-05-28]
  21. 06D7 EADE 708A 40FA 136E B454 0700 205D FD41 A71A
  22. uid [ unknown] devel OBS Project <devel@s2.owncloud.com>
  23. /etc/apt/trusted.gpg.d/elementary.key.asc
  24. -----------------------------------------
  25. pub rsa1024 2011-10-01 [SC]
  26. 6C87 69CE DC20 F5E6 6C3B 7D37 BF36 996C 4E1F 8A59
  27. uid [ unknown] Launchpad PPA for elementary OS team
  28. ```
  29. in this case we will delete the owncloud repository `06D7 EADE 708A 40FA 136E B454 0700 205D FD41 A71A` by using:
  30. ```
  31. $ sudo apt-key del "06D7 EADE 708A 40FA 136E B454 0700 205D FD41 A71A"
  32. OK
  33. $ sudo apt-get update
  34. ```