LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Failed to Fetch (https://www.linuxquestions.org/questions/linux-newbie-8/failed-to-fetch-4175609026/)

THE PHANTOM 07-05-2017 01:54 PM

i did it and same that last one:

Quote:

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?

THE PHANTOM 07-05-2017 01:55 PM

also i ran updates a few minutes ago from software manager and everything gone successfully. after i did restart as it required.

jviray2011 07-05-2017 02:02 PM

Quote:

Originally Posted by THE PHANTOM (Post 5731005)
also i ran updates a few minutes ago from software manager and everything gone successfully. after i did restart as it required.

now resolved?

erik2282 07-05-2017 02:02 PM

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.

jviray2011 07-05-2017 02:18 PM

Quote:

Originally Posted by THE PHANTOM (Post 5731001)
i did it and same that last one:

sometimes, i got this error most of the time, it executes the update but you cannot see visibly whether it is updating or not.

THE PHANTOM 07-05-2017 02:30 PM

Quote:

Originally Posted by erik2282 (Post 5731011)
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.

THE PHANTOM 07-05-2017 02:32 PM

what is ,,Use 'apt-get autoremove' to remove them" should i run it or? is it important?

thanks for replay and your support erik2282 and all of you who give me their time. Thanks.

erik2282 07-05-2017 02:37 PM

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.


THE PHANTOM 07-05-2017 02:44 PM

i ran it from su and that is output:
Quote:

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?

erik2282 07-05-2017 02:46 PM

reboot just in case and then run apt-get update && upgrade one more time..

erik2282 07-05-2017 02:49 PM

Also, since we removed the mozilla stuff from the repos, if you want the latest version of Firefox from the debian repos, run:

Code:

apt-get install firefox-esr
This will get you up to 52.2.0 as of today.

THE PHANTOM 07-05-2017 02:55 PM

ok sir thanks for everything. i will run that commands
Quote:

apt-get update && upgrade
twice a month right?

hydrurga 07-05-2017 02:57 PM

Quote:

Originally Posted by erik2282 (Post 5731046)
reboot just in case and then run apt-get update && upgrade one more time..

apt-get update && apt-get upgrade

erik2282 07-05-2017 03:00 PM

Quote:

Originally Posted by THE PHANTOM (Post 5730997)
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.

erik2282 07-05-2017 03:01 PM

Quote:

Originally Posted by hydrurga (Post 5731053)
apt-get update && apt-get upgrade

Thanks


All times are GMT -5. The time now is 08:55 AM.