1

I have an absolutely fresh install of Ubuntu 12.04 on a USB drive, made using the 64-bit PC (i386) Desktop image. By "fresh" I mean that all I have done is remove the casper-rw file and replace it with a large partition to increase persistence.

(Note: I already know I will not have these problems on 14.04 or 15.04; however, I need to use a tool that is only supported on 12.04, so upgrading is not an option.)

Apt-get update gives the following warnings, but since they are warnings rather than errors, I left them unchecked. They are not the subject of my question, unless they are part of the problem, but are provided in case they are important. The system's self-reported solution (run apt-get update) is obviously wrong because that is what generated the errors.

Fetched 3,253 kB in 16s (196 kB/s)                                                                             
Reading package lists... Done
W: Duplicate sources.list entry cdrom://Ubuntu 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140807.1)/ precise/main i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.5%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20140807.1)_dists_precise_main_binary-i386_Packages)
W: Duplicate sources.list entry cdrom://Ubuntu 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140807.1)/ precise/restricted i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.5%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20140807.1)_dists_precise_restricted_binary-i386_Packages)
W: Duplicate sources.list entry cdrom://Ubuntu 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140807.1)/ trusty/main i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.5%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20140807.1)_dists_trusty_main_binary-i386_Packages)
W: Duplicate sources.list entry cdrom://Ubuntu 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140807.1)/ trusty/restricted i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.5%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20140807.1)_dists_trusty_restricted_binary-i386_Packages)
W: Duplicate sources.list entry cdrom://Ubuntu 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140807.1)/ vivid/main i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.5%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20140807.1)_dists_vivid_main_binary-i386_Packages)
W: Duplicate sources.list entry cdrom://Ubuntu 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140807.1)/ vivid/restricted i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.5%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20140807.1)_dists_vivid_restricted_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems

More troubling, and the actual problem, is that apt-get dist-upgrade exits with actual errors. The complete output of the second invocation (i.e., just the problematic parts) is:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up linux-image-3.13.0-55-generic (3.13.0-55.94~precise1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
initrd.img(/boot/initrd.img-3.13.0-55-generic ) points to /boot/initrd.img-3.13.0-55-generic  (/boot/initrd.img-3.13.0-55-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.13.0-55-generic.postinst line 491.
vmlinuz(/boot/vmlinuz-3.13.0-55-generic ) points to /boot/vmlinuz-3.13.0-55-generic  (/boot/vmlinuz-3.13.0-55-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-3.13.0-55-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-55-generic
cryptsetup: WARNING: failed to detect canonical device of overlayfs
cryptsetup: WARNING: could not determine root device from /etc/fstab
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-55-generic /boot/vmlinuz-3.13.0-55-generic
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-55-generic.postinst line 1025.
dpkg: error processing linux-image-3.13.0-55-generic (--configure):  subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-generic-lts-trusty:  linux-image-generic-lts-trusty depends on linux-image-3.13.0-55-generic; however:   Package linux-image-3.13.0-55-generic is not configured yet.
dpkg: error processing linux-image-generic-lts-trusty (--configure):  dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-lts-trusty:  linux-generic-lts-trusty depends on linux-image-generic-lts-trusty; however:   Package linux-image-generic-lts-trusty is not configured yet.
dpkg: error processing linux-generic-lts-trusty (--configure):  dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-image-3.13.0-55-generic:  linux-signed-image-3.13.0-55-generic depends on linux-image-3.13.0-55-generic (= 3.13.0-55.94~precise1); however:   Package linux-image-3.13.0-55-generic is not configured yet.
dpkg: error processing linux-signed-image-3.13.0-55-generic (--configure):
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-image-generic-lts-trusty:  linux-signed-image-generic-lts-trusty depends on linux-signed-image-3.13.0-55-generic; however:   Package linux-signed-image-3.13.0-55-generic is not configured yet.
dpkg: error processing linux-signed-image-generic-lts-trusty (--configure):  dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-generic-lts-trusty:  linux-signed-generic-lts-trusty depends on linux-signed-image-generic-lts-trusty; however:   Package linux-signed-image-generic-lts-trusty is not configured yet.
dpkg: error processing linux-signed-generic-lts-trusty (--configure):  dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-3.13.0-55-generic
linux-image-generic-lts-trusty
linux-generic-lts-trusty
linux-signed-image-3.13.0-55-generic
linux-signed-image-generic-lts-trusty
linux-signed-generic-lts-trusty
E: Sub-process /usr/bin/dpkg returned an error code (1)

I am at a loss for what to do when upgrades go wrong to that extent on a fresh system; I'm not even sure what most of those things are.

(Edit: The tool I referenced above is the Nvidia Nsight Eclipse for the specific purpose of cross-compiling code with my laptop as host and an Nvidia Jetson development board as the target. My understanding is that only Ubuntu 12.04 is supported.)

Novak
  • 193
  • 1
  • 2
  • 11
  • check this http://askubuntu.com/questions/31667/what-does-no-apport-report-written-because-maxreports-is-reached-already-mean – JoKeR Jun 26 '15 at 08:07
  • what is the name of that specific tool? – JoKeR Jun 26 '15 at 08:11
  • @JoKeR, I've edited the end of the main question to reference the specific tool and use I need. My understanding is that this is only supported in 12.04. If I'm incorrect, I may both laugh and cry, since it will mean my fifth install of Ubuntu on that USB drive this week. – Novak Jun 26 '15 at 08:30
  • it's stated that it's available for all Ubuntu distributions ;) let write a quick answer in a min – JoKeR Jun 26 '15 at 08:40
  • @JoKeR, careful-- Nsight is supported, but I don't think the cross-compilation to ARM for the Jetson is supported. – Novak Jun 26 '15 at 08:48
  • I think it does... it states so http://devblogs.nvidia.com/parallelforall/nvidia-nsight-eclipse-edition-for-jetson-tk1/ also discussion thread https://devtalk.nvidia.com/default/topic/774092/cross-compiler-setup-for-jetson-tk1/ but though it's stated it's availabale in cuda 6 toolkit package – JoKeR Jun 26 '15 at 08:59

1 Answers1

0

From official Nvidia website: The latest version of NVIDIA Nsight Eclipse Edition with support for CUDA C/C++ and is supported on MAC and Linux platforms. Just install the CUDA Toolkit and run 'nsight' on the command line.

Check it with:

apt-cache policy nvidia-cuda-toolkit

The packages included are listed here one of them as you can see nvidia-nsight: NVIDIA Nsight Eclipse Edition and it's maintained for all current supported Ubuntu distros.

To install nvidia-cuda-toolkit in terminal run:

sudo apt-get install nvidia-cuda-toolkit

CUDA 6.5 Toolkit for Ubuntu14.04 x86 64-bit (with TK1 cross-development support) can be downloaded from here http://developer.download.nvidia.com/compute/cuda/6_5/rel/installers/cuda-repo-ubuntu1404-6-5-prod_6.5-19_amd64.deb

More detailed info can be found here and here

JoKeR
  • 6,972
  • 9
  • 43
  • 65