Advertisement
pranav_bhattarai

update & upgrade

Jul 22nd, 2019
1,333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.62 KB | None | 0 0
  1. pranav@inspiron-5548L:~$ sudo apt install -f
  2. E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
  3. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
  4. pranav@inspiron-5548L:~$ sudo apt install -f
  5. E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
  6. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
  7. pranav@inspiron-5548L:~$ sudo rm -rf /var/lib/dpkg/*
  8. pranav@inspiron-5548L:~$ sudo apt install -f
  9. Reading package lists... Error!
  10. E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: No such file or directory)
  11. E: Could not open file  - open (2: No such file or directory)
  12. E: Problem opening
  13. E: The package lists or status file could not be parsed or opened.
  14. pranav@inspiron-5548L:~$ sudo rm -rf /var/apt/lists/*
  15. pranav@inspiron-5548L:~$ sudo apt install -f
  16. Reading package lists... Error!
  17. E: flAbsPath on /var/lib/dpkg/status failed - realpath (2: No such file or directory)
  18. E: Could not open file  - open (2: No such file or directory)
  19. E: Problem opening
  20. E: The package lists or status file could not be parsed or opened.
  21. pranav@inspiron-5548L:~$ sudo touch /var/lib/dpkg/status
  22. pranav@inspiron-5548L:~$ sudo apt install -f
  23. Reading package lists... Done
  24. Building dependency tree      
  25. Reading state information... Done
  26. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  27. pranav@inspiron-5548L:~$ sudo dpkg --configure -a
  28. dpkg: error: cannot scan updates directory '/var/lib/dpkg/updates/': No such file or directory
  29. pranav@inspiron-5548L:~$ sudo touch /var/lib/dpkg/updates
  30. pranav@inspiron-5548L:~$ sudo dpkg --configure -a
  31. dpkg: error: cannot scan updates directory '/var/lib/dpkg/updates/': Not a directory
  32. pranav@inspiron-5548L:~$ sudo mkdir /var/lib/dpkg/updates
  33. mkdir: cannot create directory ‘/var/lib/dpkg/updates’: File exists
  34. pranav@inspiron-5548L:~$ sudo rm /var/lib/dpkg/updates
  35. pranav@inspiron-5548L:~$ sudo mkdir /var/lib/dpkg/updates
  36. pranav@inspiron-5548L:~$ sudo apt-get update
  37. Hit:1 http://repo.mysql.com/apt/ubuntu disco InRelease
  38. Hit:2 http://packages.microsoft.com/repos/vscode stable InRelease        
  39. Hit:3 http://archive.canonical.com/ubuntu disco InRelease                
  40. Hit:4 http://archive.ubuntu.com/ubuntu disco InRelease                  
  41. Ign:5 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease
  42. Hit:6 http://ppa.launchpad.net/bit-team/stable/ubuntu disco InRelease
  43. Ign:7 http://dl.google.com/linux/chrome/deb stable InRelease            
  44. Get:8 http://archive.ubuntu.com/ubuntu disco-updates InRelease [97.5 kB]
  45. Hit:9 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release
  46. Hit:10 http://dl.google.com/linux/chrome/deb stable Release              
  47. Hit:11 http://ppa.launchpad.net/libreoffice/ppa/ubuntu disco InRelease  
  48. Hit:14 http://ppa.launchpad.net/mozillateam/ppa/ubuntu disco InRelease  
  49. Get:15 https://repo.windscribe.com/ubuntu zesty InRelease [7,318 B]
  50. Get:16 http://archive.ubuntu.com/ubuntu disco-backports InRelease [88.8 kB]
  51. Hit:17 http://ppa.launchpad.net/oguzhaninan/stacer/ubuntu disco InRelease
  52. Get:18 http://archive.ubuntu.com/ubuntu disco-security InRelease [97.5 kB]
  53. Hit:19 http://ppa.launchpad.net/scribus/ppa/ubuntu disco InRelease      
  54. Hit:20 http://ppa.launchpad.net/starlabs/ppa/ubuntu disco InRelease
  55. Hit:21 http://ppa.launchpad.net/utappia/stable/ubuntu disco InRelease
  56. Fetched 291 kB in 4s (72.5 kB/s)                  
  57. Reading package lists... Done
  58. pranav@inspiron-5548L:~$ sudo apt-get upgrade
  59. Reading package lists... Done
  60. Building dependency tree      
  61. Reading state information... Done
  62. Calculating upgrade... Done
  63. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  64. pranav@inspiron-5548L:~$ apt list --upgradable
  65. Listing... Done
  66. pranav@inspiron-5548L:~$ sudo apt-get update
  67. Hit:1 http://repo.mysql.com/apt/ubuntu disco InRelease
  68. Hit:2 http://packages.microsoft.com/repos/vscode stable InRelease        
  69. Ign:3 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease
  70. Hit:4 http://ppa.launchpad.net/bit-team/stable/ubuntu disco InRelease    
  71. Hit:5 http://archive.canonical.com/ubuntu disco InRelease                
  72. Hit:6 http://archive.ubuntu.com/ubuntu disco InRelease                  
  73. Ign:7 http://dl.google.com/linux/chrome/deb stable InRelease            
  74. Hit:8 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release
  75. Get:9 http://archive.ubuntu.com/ubuntu disco-updates InRelease [97.5 kB]
  76. Hit:10 http://dl.google.com/linux/chrome/deb stable Release              
  77. Hit:11 http://ppa.launchpad.net/libreoffice/ppa/ubuntu disco InRelease  
  78. Get:12 https://repo.windscribe.com/ubuntu zesty InRelease [7,318 B]      
  79. Hit:14 http://ppa.launchpad.net/mozillateam/ppa/ubuntu disco InRelease  
  80. Get:16 http://archive.ubuntu.com/ubuntu disco-backports InRelease [88.8 kB]
  81. Hit:17 http://ppa.launchpad.net/oguzhaninan/stacer/ubuntu disco InRelease
  82. Get:18 http://archive.ubuntu.com/ubuntu disco-security InRelease [97.5 kB]
  83. Hit:19 http://ppa.launchpad.net/scribus/ppa/ubuntu disco InRelease
  84. Hit:20 http://ppa.launchpad.net/starlabs/ppa/ubuntu disco InRelease      
  85. Hit:21 http://ppa.launchpad.net/utappia/stable/ubuntu disco InRelease
  86. Fetched 291 kB in 4s (72.8 kB/s)                  
  87. Reading package lists... Done
  88. pranav@inspiron-5548L:~$ sudo apt-get upgrade
  89. Reading package lists... Done
  90. Building dependency tree      
  91. Reading state information... Done
  92. Calculating upgrade... Done
  93. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  94. pranav@inspiron-5548L:~$ apt list --upgradable
  95. Listing... Done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement