Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
liblockfile-bin liblockfile1 linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-headers-4.4.0-47 linux-headers-4.4.0-47-generic
linux-headers-4.4.0-51 linux-headers-4.4.0-51-generic linux-headers-4.4.0-53 linux-headers-4.4.0-53-generic linux-headers-4.4.0-57
linux-headers-4.4.0-57-generic linux-headers-4.4.0-59 linux-headers-4.4.0-59-generic linux-headers-4.4.0-62 linux-headers-4.4.0-62-generic
linux-headers-4.4.0-63 linux-headers-4.4.0-63-generic linux-headers-4.4.0-65 linux-headers-4.4.0-65-generic linux-headers-4.4.0-71
linux-headers-4.4.0-71-generic linux-image-4.4.0-31-generic linux-image-4.4.0-47-generic linux-image-4.4.0-51-generic linux-image-4.4.0-53-generic
linux-image-4.4.0-57-generic linux-image-4.4.0-59-generic linux-image-4.4.0-62-generic linux-image-4.4.0-63-generic linux-image-4.4.0-65-generic
linux-image-4.4.0-71-generic linux-image-extra-4.4.0-31-generic linux-image-extra-4.4.0-47-generic linux-image-extra-4.4.0-51-generic
linux-image-extra-4.4.0-53-generic linux-image-extra-4.4.0-57-generic linux-image-extra-4.4.0-59-generic linux-image-extra-4.4.0-62-generic
linux-image-extra-4.4.0-63-generic linux-image-extra-4.4.0-65-generic linux-image-extra-4.4.0-71-generic m4 sendmail-base sendmail-cf sensible-mda
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
linux-image-4.4.0-71-generic linux-image-4.4.0-96-generic
Suggested packages:
fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
The following NEW packages will be installed:
linux-image-4.4.0-71-generic linux-image-4.4.0-96-generic
0 upgraded, 2 newly installed, 0 to remove and 194 not upgraded.
10 not fully installed or removed.
Need to get 0 B/43.7 MB of archives.
After this operation, 133 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 482069 files and directories currently installed.)
Preparing to unpack .../linux-image-4.4.0-96-generic_4.4.0-96.119_amd64.deb ...
Done.
Unpacking linux-image-4.4.0-96-generic (4.4.0-96.119) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-96-generic_4.4.0-96.119_amd64.deb (--unpack):
cannot copy extracted data for './boot/System.map-4.4.0-96-generic' to '/boot/System.map-4.4.0-96-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-96-generic /boot/vmlinuz-4.4.0-96-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-96-generic /boot/vmlinuz-4.4.0-96-generic
Preparing to unpack .../linux-image-4.4.0-71-generic_4.4.0-71.92_amd64.deb ...
Done.
Unpacking linux-image-4.4.0-71-generic (4.4.0-71.92) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-71-generic_4.4.0-71.92_amd64.deb (--unpack):
cannot copy extracted data for './boot/vmlinuz-4.4.0-71-generic' to '/boot/vmlinuz-4.4.0-71-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-71-generic /boot/vmlinuz-4.4.0-71-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-71-generic /boot/vmlinuz-4.4.0-71-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-4.4.0-96-generic_4.4.0-96.119_amd64.deb
/var/cache/apt/archives/linux-image-4.4.0-71-generic_4.4.0-71.92_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Ошибка CS1503 Аргумент 2: не удается преобразовать из "string" в "string[]".
private void export_Click(object sender, EventArgs e)
{
string filename = "";
SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = "CSV (*.csv)|*.csv";
sfd.FileName = "Output.csv";
if (sfd.ShowDialog() == DialogResult.OK)
{
MessageBox.Show("Data will be exported and you will be notified when it is ready.");
if (File.Exists(filename))
{
try
{
File.Delete(filename);
}
catch (IOException ex)
{
MessageBox.Show("It wasn't possible to write the data to the disk." + ex.Message);
}
}
int columnCount = dataGridView1.ColumnCount;
string columnNames = "";
string[] output = new string[dataGridView1.RowCount + 1];
for (int i = 0; i < columnCount; i++)
{
columnNames += dataGridView1.Columns[i].Name.ToString() + ",";
}
output[0] += columnNames;
for (int i = 1; (i - 1) < dataGridView1.RowCount; i++)
{
for (int j = 0; j < columnCount; j++)
{
output[i] += dataGridView1.Rows[i - 1].Cells[j].Value.ToString() + ",";
}
}
System.IO.File.WriteAllLines(sfd.FileName, output, System.Text.Encoding.UTF8);
MessageBox.Show("Your file was generated and its ready for use.");
}
}
System.NullReferenceException произошло
HResult=0x80004003
Сообщение = Ссылка на объект не указывает на экземпляр объекта.