Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 826
Rep:
Im not sure why you're getting permission denied. Maybe with sudo you dont have access to update/upgrade?? Try su - to root account and then try update/upgrade.
Im not sure why you're getting permission denied. Maybe with sudo you dont have access to update/upgrade?? Try su - to root account and then try update/upgrade.
I tried with su and everything got fine
Quote:
apt-get update && apt-get upgrade
Ign http://ftp.debian.org jessie InRelease
Hit http://ftp.debian.org jessie-updates InRelease
Hit http://ftp.debian.org jessie-backports InRelease
Hit http://ftp.debian.org jessie Release.gpg
Hit http://security.debian.org jessie/updates InRelease
Get:1 http://ftp.debian.org jessie-updates/main amd64 Packages/DiffIndex [8,392 B]
Hit http://ftp.debian.org jessie-updates/contrib amd64 Packages
Get:2 http://ftp.debian.org jessie-updates/non-free amd64 Packages/DiffIndex [736 B]
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://ftp.debian.org jessie-updates/contrib Translation-en
Get:3 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3,196 B]
Get:4 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Hit http://security.debian.org jessie/updates/contrib amd64 Packages
Hit http://ftp.debian.org jessie Release
Get:5 http://ftp.debian.org jessie-backports/main amd64 Packages/DiffIndex [27.8 kB]
Hit http://security.debian.org jessie/updates/non-free amd64 Packages
Get:6 http://ftp.debian.org jessie-backports/contrib amd64 Packages/DiffIndex [24.6 kB]
Get:7 http://ftp.debian.org jessie-backports/non-free amd64 Packages/DiffIndex [22.4 kB]
Get:8 http://ftp.debian.org jessie-backports/contrib Translation-en/DiffIndex [6,976 B]
Hit http://security.debian.org jessie/updates/contrib Translation-en
Get:9 http://ftp.debian.org jessie-backports/main Translation-en/DiffIndex [27.8 kB]
Get:10 http://ftp.debian.org jessie-backports/non-free Translation-en/DiffIndex [16.7 kB]
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://ftp.debian.org jessie/main amd64 Packages
Hit http://ftp.debian.org jessie/contrib amd64 Packages
Hit http://ftp.debian.org jessie/non-free amd64 Packages
Hit http://security.debian.org jessie/updates/non-free Translation-en
Hit http://ftp.debian.org jessie/contrib Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
Hit http://ftp.debian.org jessie/non-free Translation-en
Fetched 139 kB in 4s (32.4 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
docutils-common docutils-doc firebird2.5-common firebird2.5-common-doc firebird2.5-server-common libart-2.0-2
libasprintf0c2 libcmis-0.4-4 libegl1-mesa-drivers libelfg0 libfbclient2 libfbembed2.5 libgltf-0.0-0 libllvm3.5
libopenvg1-mesa liborcus-0.8-0 libreoffice-sdbc-firebird libwps-0.3-3 linux-image-3.16.0-4-amd64 python-defusedxml
python-docutils python-imaging python-pexpect python-pil python-ptyprocess python-pygments python-renderpm
python-reportlab python-reportlab-accel python-roman python-soappy python-wstools
Use 'apt-get autoremove' to remove them.
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 826
Rep:
Yes. go ahead and run it.
Code:
# apt-get autoremove
From the man page:
Code:
autoremove
autoremove is used to remove packages that were automatically
installed to satisfy dependencies for some package and that are no
more needed.
apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
docutils-common docutils-doc firebird2.5-common firebird2.5-common-doc firebird2.5-server-common libart-2.0-2
libasprintf0c2 libcmis-0.4-4 libegl1-mesa-drivers libelfg0 libfbclient2 libfbembed2.5 libgltf-0.0-0 libllvm3.5
libopenvg1-mesa liborcus-0.8-0 libreoffice-sdbc-firebird libwps-0.3-3 linux-image-3.16.0-4-amd64 python-defusedxml
python-docutils python-imaging python-pexpect python-pil python-ptyprocess python-pygments python-renderpm
python-reportlab python-reportlab-accel python-roman python-soappy python-wstools
0 upgraded, 0 newly installed, 32 to remove and 0 not upgraded.
After this operation, 226 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 106644 files and directories currently installed.)
Removing python-soappy (0.12.22-1) ...
Removing python-wstools (0.4.3-2) ...
Removing python-docutils (0.12+dfsg-1) ...
Removing docutils-common (0.12+dfsg-1) ...
Removing docutils-doc (0.12+dfsg-1) ...
Removing libreoffice-sdbc-firebird (1:4.3.3-2+deb8u7) ...
Removing libfbembed2.5 (2.5.3.26778.ds4-5+deb8u1) ...
Removing firebird2.5-server-common (2.5.3.26778.ds4-5+deb8u1) ...
Removing libfbclient2:amd64 (2.5.3.26778.ds4-5+deb8u1) ...
Removing firebird2.5-common (2.5.3.26778.ds4-5+deb8u1) ...
Removing firebird2.5-common-doc (2.5.3.26778.ds4-5+deb8u1) ...
Removing python-renderpm:amd64 (3.1.8-3+deb8u1) ...
Removing libart-2.0-2:amd64 (2.3.21-2) ...
Removing libasprintf0c2:amd64 (0.19.8.1-1~bpo8+1) ...
Removing libcmis-0.4-4 (0.4.1-7) ...
Removing libegl1-mesa-drivers:amd64 (13.0.6-1~bpo8+1) ...
Removing libelfg0:amd64 (0.8.13-5) ...
Removing libgltf-0.0-0 (0.0.2-2) ...
Removing libllvm3.5:amd64 (1:3.5.2-3~bpo8+2) ...
Removing libopenvg1-mesa:amd64 (10.3.2-1+deb8u1) ...
Removing liborcus-0.8-0 (0.7.0+dfsg-9) ...
Removing libwps-0.3-3 (0.3.0-2) ...
Removing linux-image-3.16.0-4-amd64 (3.16.43-2+deb8u2) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-3.16.0-4-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.9.0-0.bpo.3-amd64
Found initrd image: /boot/initrd.img-4.9.0-0.bpo.3-amd64
Found linux image: /boot/vmlinuz-4.9.0-0.bpo.2-amd64
Found initrd image: /boot/initrd.img-4.9.0-0.bpo.2-amd64
Found Windows Recovery Environment (loader) on /dev/sda1
done
Removing python-defusedxml (0.4.1-2) ...
Removing python-imaging (3.4.2-1~bpo8+1) ...
Removing python-pexpect (4.2.1-1~bpo8+1) ...
Removing python-pil:amd64 (3.4.2-1~bpo8+1) ...
Removing python-ptyprocess (0.5.1-1~bpo8+1) ...
Removing python-pygments (2.2.0+dfsg-1~bpo8+1) ...
Removing python-reportlab (3.1.8-3+deb8u1) ...
Removing python-reportlab-accel:amd64 (3.1.8-3+deb8u1) ...
Removing python-roman (2.0.0-1) ...
Processing triggers for shared-mime-info (1.5-2~bpo8+1) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
is that ok now? should i do any step next?
Last edited by THE PHANTOM; 07-05-2017 at 02:46 PM.
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 826
Rep:
Quote:
Originally Posted by THE PHANTOM
also i have one question: what should i do most that my system keep always updated? what commands or methods u advice me sir? Thanks for help and yout time and sorry for disturbing u.
On my KDE desktop there is a system notification on my system tray that alerts me when there are updates and usually let that utility run and update my system. I'm not sure what its called but it works great. I have a debian jessie machine at work with Mate desktop and that auto-check utility is not there, well maybe i just need to install it, but I dont care. I just manually run the update/upgrade commands every couple weeks. Im sure you can make a cron job to do this as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.